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

Method enqueue

common/concurrent_queue.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void ConcurrentQueue::enqueue(Job job)
32{
33 {
34 std::lock_guard<std::mutex> lock(jobsLeftMutex);
35 ++jobsLeft;
36 }
37
38 {
39 std::lock_guard<std::mutex> lock(queueMutex);
40 _queue.emplace(std::move(job));
41 }
42
43 jobAvailableVar.notify_one();
44}
45
46std::size_t ConcurrentQueue::cancelPending()
47{

Callers 2

createModelDataMethod · 0.45
createModelDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected