MCPcopy Create free account
hub / github.com/LabSound/LabSound / wait_and_pop

Method wait_and_pop

include/LabSound/core/ConcurrentQueue.h:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void wait_and_pop(Data & popped_value)
50 {
51 std::unique_lock<std::mutex> lock(the_mutex);
52 while (the_queue.empty())
53 {
54 the_condition_variable.wait(lock);
55 }
56
57 popped_value = the_queue.front();
58 the_queue.pop();
59 }
60};
61}

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected