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

Method prepareTriggeredCall

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

* After prepareTriggeredCall() is invoked, calls to any of the *Wait() * functions won't return until triggerPendingCalls() is invoked * * This has to be a separate function invoked by the main test thread * in order to to avoid race conditions. */

Source from the content-addressed store, hash-verified

102 * in order to to avoid race conditions.
103 */
104 void prepareTriggeredCall() {
105 concurrency::Guard g(mutex_);
106 wait_ = true;
107 }
108
109 /**
110 * Wake up all calls waiting in blockUntilTriggered()

Callers 4

testEventSequencingFunction · 0.80
testOnewayCallFunction · 0.80
testExpectedErrorFunction · 0.80
testUnexpectedErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected