MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / wakeupAllThread

Method wakeupAllThread

src/UtilsCtrl/ThreadPool/UThreadPool.cpp:274–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272
273
274CSize UThreadPool::wakeupAllThread() const {
275 CSize size = 0;
276 for (auto& pt : primary_threads_) {
277 if (pt->wakeup()) {
278 ++size;
279 }
280 }
281
282 for (auto& st : secondary_threads_) {
283 if (st->wakeup()) {
284 ++size;
285 }
286 }
287
288 return size;
289}
290
291CGRAPH_NAMESPACE_END

Callers 1

parallelRunAllMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected