MCPcopy Create free account
hub / github.com/Tom94/tev / waitUntilFinishedFor

Method waitUntilFinishedFor

src/ThreadPool.cpp:113–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void ThreadPool::waitUntilFinishedFor(const chrono::microseconds duration) {
114 const auto now = chrono::steady_clock::now();
115 while (mThreads.size() > 0 && mNumTasksInSystem > 0 && chrono::steady_clock::now() - now < duration) {
116 this_thread::sleep_for(1ms);
117 }
118}
119
120} // namespace tev

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected