| 303 | } |
| 304 | |
| 305 | bool 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 | |
| 320 | bool NodeExecutor::Release(void) |
| 321 | { |
nothing calls this directly
no test coverage detected