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

Method AddTaskNoLock

dali/core/exec/thread_pool_base.cc:224–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void ThreadPoolBase::AddTaskNoLock(TaskFunc &&f) {
225 if (shutdown_pending_)
226 throw std::logic_error("The thread pool is stopped and no longer accepts new tasks.");
227 tasks_.push(std::move(f));
228}
229
230void ThreadPoolBase::AddTask(TaskFunc &&f) {
231 {

Callers 1

AddMethod · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected