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

Method clean

Extensions/PilotOSMachine/easylogging++.cpp:2306–2314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2304}
2305
2306bool AsyncDispatchWorker::clean(void) {
2307 std::mutex m;
2308 std::unique_lock<std::mutex> lk(m);
2309 cv.wait(lk, [] { return !ELPP->asyncLogQueue()->empty(); });
2310 emptyQueue();
2311 lk.unlock();
2312 cv.notify_one();
2313 return ELPP->asyncLogQueue()->empty();
2314}
2315
2316void AsyncDispatchWorker::emptyQueue(void) {
2317 while (!ELPP->asyncLogQueue()->empty()) {

Callers

nothing calls this directly

Calls 3

asyncLogQueueMethod · 0.80
emptyMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected