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

Method Add

include/dali/core/exec/thread_pool_base.h:269–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 class TaskBulkAdd {
268 public:
269 void Add(TaskFunc &&f) {
270 if (!lock.owns_lock())
271 lock.lock();
272 owner->AddTaskNoLock(std::move(f));
273 tasks_added++;
274 }
275
276 ~TaskBulkAdd() noexcept {
277 Submit();

Callers

nothing calls this directly

Calls 2

AddTaskNoLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected