MCPcopy Create free account
hub / github.com/OAID/Tengine / PushTask

Method PushTask

core/include/worker_thread.hpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 void PushTask(const std::vector<T>& task_list)
71 {
72 std::unique_lock<std::mutex> cv_lock(*worker_lock_);
73
74 for(auto task : task_list)
75 task_queue_->push(task);
76
77 if(inc_req_)
78 inc_req_(task_list.size());
79
80 cv_lock.unlock();
81
82 worker_cv_->notify_all();
83 }
84
85 void SetQueue(std::queue<T>* task_queue, std::mutex* worker_lock, std::condition_variable* worker_cv)
86 {

Callers 4

PushAiderTaskMethod · 0.45
PushMasterTaskMethod · 0.45
DevRunMethod · 0.45
OnNodeDoneMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected