MCPcopy Create free account
hub / github.com/Snapchat/Valdi / wait

Method wait

valdi_core/src/valdi_core/cpp/Utils/Mutex.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void ConditionVariable::wait(std::unique_lock<Mutex>& lock) {
119 auto* mutexPtr = lock.mutex();
120 auto convertedLock = toStdLock(lock);
121 _condition.wait(convertedLock);
122 lock = toValdiLock(convertedLock, mutexPtr);
123}
124
125std::cv_status ConditionVariable::waitFor(std::unique_lock<Mutex>& lock,
126 const std::chrono::steady_clock::duration& duration) {

Callers 5

barrierMethod · 0.45
ValdiSmokeTest.tsFile · 0.45
bootstrapFunction · 0.45
createClientFunction · 0.45
lookForOutputFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected