From 079b5b94e90fbd1a0a0f16ae1be8b34eee07de8c Mon Sep 17 00:00:00 2001 From: hai007 Date: Sat, 28 Feb 2026 19:26:07 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 876835227 --- internal/platform/implementation/shared/count_down_latch.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/platform/implementation/shared/count_down_latch.cc b/internal/platform/implementation/shared/count_down_latch.cc index f951196b..636bab93 100644 --- a/internal/platform/implementation/shared/count_down_latch.cc +++ b/internal/platform/implementation/shared/count_down_latch.cc @@ -24,7 +24,7 @@ namespace shared { CountDownLatch::CountDownLatch(int count) : count_(count) {} ExceptionOr CountDownLatch::Await(absl::Duration timeout) { - absl::MutexLock lock(&mutex_); + absl::MutexLock lock(mutex_); absl::Time deadline = absl::Now() + timeout; while (count_ > 0) { if (cond_.WaitWithDeadline(&mutex_, deadline)) { @@ -35,14 +35,14 @@ ExceptionOr CountDownLatch::Await(absl::Duration timeout) { } Exception CountDownLatch::Await() { - absl::MutexLock lock(&mutex_); + absl::MutexLock lock(mutex_); while (count_ > 0) { cond_.Wait(&mutex_); } return {Exception::kSuccess}; } void CountDownLatch::CountDown() { - absl::MutexLock lock(&mutex_); + absl::MutexLock lock(mutex_); if (count_ > 0 && --count_ == 0) { cond_.SignalAll(); }