MCPcopy Create free account
hub / github.com/NVIDIA/DALI / PopUnlockAndRunTask

Method PopUnlockAndRunTask

dali/core/exec/thread_pool_base.cc:260–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260void ThreadPoolBase::PopUnlockAndRunTask(std::unique_lock<std::mutex> &lock) noexcept {
261 TaskFunc t = std::move(tasks_.front());
262 tasks_.pop();
263 lock.unlock();
264 t();
265}
266
267template <typename Condition>
268bool ThreadPoolBase::WaitOrRunTasks(std::condition_variable &cv, Condition &&condition) {

Callers

nothing calls this directly

Calls 4

tFunction · 0.85
frontMethod · 0.45
popMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected