MCPcopy Create free account
hub / github.com/AshampooSystems/boden / waitFor

Method waitFor

tests/boden/testDispatchQueue.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 bool waitFor(int numberOfTriggers)
34 {
35 std::unique_lock<std::mutex> lk(mutex);
36
37 if (numberOfTriggers == triggers) {
38 return true;
39 }
40
41 return cv.wait_for(lk, 1min, [&] { return triggers == numberOfTriggers; });
42 }
43
44 void operator()()
45 {

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected