MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / Enqueue

Method Enqueue

src/httpserver.cpp:90–99  ·  view source on GitHub ↗

Enqueue a work item */

Source from the content-addressed store, hash-verified

88 }
89 /** Enqueue a work item */
90 bool Enqueue(WorkItem* item)
91 {
92 boost::unique_lock<boost::mutex> lock(cs);
93 if (queue.size() >= maxDepth) {
94 return false;
95 }
96 queue.push_back(item);
97 cond.notify_one();
98 return true;
99 }
100 /** Thread function */
101 void Run()
102 {

Callers 1

http_request_cbFunction · 0.80

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected