* blockUntilTriggered() won't return until triggerPendingCalls() is invoked * in another thread. * * This should only be called when already holding mutex_. */
| 123 | * This should only be called when already holding mutex_. |
| 124 | */ |
| 125 | void blockUntilTriggered() { |
| 126 | while (wait_) { |
| 127 | triggerMonitor.waitForever(); |
| 128 | } |
| 129 | |
| 130 | // Log an event when we return |
| 131 | log_->append(EventLog::ET_WAIT_RETURN, 0, 0); |
| 132 | } |
| 133 | |
| 134 | concurrency::Mutex mutex_; |
| 135 | concurrency::Monitor triggerMonitor; |
nothing calls this directly
no test coverage detected