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

Method Run

src/httpserver.cpp:101–117  ·  view source on GitHub ↗

Thread function */

Source from the content-addressed store, hash-verified

99 }
100 /** Thread function */
101 void Run()
102 {
103 while (running) {
104 WorkItem* i = 0;
105 {
106 boost::unique_lock<boost::mutex> lock(cs);
107 while (running && queue.empty())
108 cond.wait(lock);
109 if (!running)
110 break;
111 i = queue.front();
112 queue.pop_front();
113 }
114 (*i)();
115 delete i;
116 }
117 }
118 /** Interrupt and exit loops */
119 void Interrupt()
120 {

Callers 1

HTTPWorkQueueRunFunction · 0.45

Calls 2

waitMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected