MCPcopy Create free account
hub / github.com/decoder-it/ADCSCoercePotato / wait_pop

Method wait_pop

BlockingQueue.h:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 return true;
20 }
21 ITEM wait_pop() { // blocking pop
22 std::unique_lock<Mutex> lock(mutex);
23 condition.wait(lock, [this] {return !queue.empty(); });
24 ITEM const value = std::move(queue.front());
25 queue.pop();
26 return value;
27 }
28 bool empty() const { // queue is empty?
29 std::lock_guard<Mutex> lock(mutex);
30 return queue.empty();

Callers 2

startRPCConnectionMethod · 0.80
startCOMListenerMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected