MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / emptyQueue

Method emptyQueue

src/thundersvm/util/log.cpp:2206–2212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2204}
2205
2206void AsyncDispatchWorker::emptyQueue(void) {
2207 while (!ELPP->asyncLogQueue()->empty()) {
2208 AsyncLogItem data = ELPP->asyncLogQueue()->next();
2209 handle(&data);
2210 base::threading::msleep(100);
2211 }
2212}
2213
2214void AsyncDispatchWorker::start(void) {
2215 base::threading::msleep(5000); // 5s (why?)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected