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

Method push

BlockingQueue.h:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7template<typename ITEM> class BlockingQueue{
8public:
9 void push(const ITEM& value) { // push
10 std::lock_guard<Mutex> lock(mutex);
11 queue.push(std::move(value));
12 condition.notify_one();
13 }
14 bool try_pop(ITEM& value) { // non-blocking pop
15 std::lock_guard<Mutex> lock(mutex);
16 if (queue.empty()) return false;

Callers 2

startRPCConnectionMethod · 0.80
startCOMListenerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected