MCPcopy Create free account
hub / github.com/YACReader/yacreader / ~ConcurrentQueue

Method ~ConcurrentQueue

common/concurrent_queue.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17ConcurrentQueue::~ConcurrentQueue()
18{
19 {
20 std::lock_guard<std::mutex> lock(queueMutex);
21 assert(!bailout);
22 bailout = true;
23 }
24 jobAvailableVar.notify_all();
25
26 for (auto &x : threads)
27 x.join();
28 assert(jobsLeft == _queue.size() && "Only not yet started jobs are left.");
29}
30
31void ConcurrentQueue::enqueue(Job job)
32{

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected