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

Method waitForEvent

lib/cpp/test/processor/EventLog.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94Event EventLog::waitForEvent(int64_t timeout) {
95 Synchronized s(monitor_);
96
97 try {
98 while (events_.empty()) {
99 monitor_.wait(timeout);
100 }
101 } catch (const TimedOutException &) {
102 return Event(ET_LOG_END, 0, 0, "");
103 }
104
105 Event event = events_.front();
106 events_.pop_front();
107 return event;
108}
109
110Event EventLog::waitForConnEvent(uint32_t connId, int64_t timeout) {
111 Synchronized s(monitor_);

Callers 9

checkNoEventsFunction · 0.45
checkNewConnEventsFunction · 0.45
checkCloseEventsFunction · 0.45
checkCallHandlerEventsFunction · 0.45
testEventSequencingFunction · 0.45
testOnewayCallFunction · 0.45
testExpectedErrorFunction · 0.45
testUnexpectedErrorFunction · 0.45

Calls 3

emptyMethod · 0.80
EventClass · 0.70
waitMethod · 0.45

Tested by

no test coverage detected