MCPcopy Create free account
hub / github.com/LUX-Core/lux / Run

Method Run

src/httpserver.cpp:104–119  ·  view source on GitHub ↗

Thread function */

Source from the content-addressed store, hash-verified

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

Callers 1

HTTPWorkQueueRunFunction · 0.45

Calls 2

emptyMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected