| 40 | } |
| 41 | |
| 42 | void BlockingCounter::Wait() { |
| 43 | const auto& condition = [this]() { |
| 44 | return count_.load(std::memory_order_acquire) == 0; |
| 45 | }; |
| 46 | WaitUntil(condition, &count_cond_, &count_mutex_); |
| 47 | } |
| 48 | |
| 49 | } // namespace ruy |
no test coverage detected