MCPcopy Create free account
hub / github.com/apache/thrift / blockUntilTriggered

Method blockUntilTriggered

lib/cpp/test/processor/Handlers.h:125–132  ·  view source on GitHub ↗

* blockUntilTriggered() won't return until triggerPendingCalls() is invoked * in another thread. * * This should only be called when already holding mutex_. */

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

waitForeverMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected