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

Method try_pop

include/LabSound/core/ConcurrentQueue.h:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 bool try_pop(Data & popped_value)
37 {
38 std::lock_guard<std::mutex> lock(the_mutex);
39 if (the_queue.empty())
40 {
41 return false;
42 }
43
44 popped_value = the_queue.front();
45 the_queue.pop();
46 return true;
47 }
48
49 void wait_and_pop(Data & popped_value)
50 {

Callers 1

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected