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

Method Init

executor/lib/node_dev_executor.cpp:305–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305bool NodeExecutor::Init(void)
306{
307 if(SupportNonblockRun() && create_worker_)
308 {
309 auto f = std::bind(&NodeExecutor::ProcessTask, this, std::placeholders::_1);
310 worker_ = new WorkerThread<NodeTask>(f);
311
312 worker_->SetQueue(&task_queue_, &worker_lock_, &worker_cv_);
313 worker_->LaunchWorker();
314 worker_->Activate(-1);
315 }
316
317 return true;
318}
319
320bool NodeExecutor::Release(void)
321{

Callers

nothing calls this directly

Calls 3

SetQueueMethod · 0.80
LaunchWorkerMethod · 0.80
ActivateMethod · 0.80

Tested by

no test coverage detected