MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / emptyQueue

Method emptyQueue

Extensions/PilotOSMachine/easylogging++.cpp:2316–2322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2314}
2315
2316void AsyncDispatchWorker::emptyQueue(void) {
2317 while (!ELPP->asyncLogQueue()->empty()) {
2318 AsyncLogItem data = ELPP->asyncLogQueue()->next();
2319 handle(&data);
2320 base::threading::msleep(100);
2321 }
2322}
2323
2324void AsyncDispatchWorker::start(void) {
2325 base::threading::msleep(5000); // 5s (why?)

Callers

nothing calls this directly

Calls 5

msleepFunction · 0.85
asyncLogQueueMethod · 0.80
handleFunction · 0.50
emptyMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected