MCPcopy Create free account
hub / github.com/YACReader/yacreader / waitAll

Method waitAll

common/concurrent_queue.cpp:62–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void ConcurrentQueue::waitAll() const
63{
64 std::unique_lock<std::mutex> lock(jobsLeftMutex);
65 _waitVar.wait(lock, [this] { return jobsLeft == 0; });
66}
67
68void ConcurrentQueue::nextJob()
69{

Callers 1

waitAndPrintFunction · 0.80

Calls

no outgoing calls

Tested by 1

waitAndPrintFunction · 0.64