| 93 | HpcThreadPool::ptr_t CPUBackend::getThreadPool() { return thread_pool_; } |
| 94 | |
| 95 | void CPUBackend::initThreadPool(int32_t num_threads) { |
| 96 | thread_pool_ = std::make_shared<HpcThreadPool>(num_threads); |
| 97 | thread_pool_->activate(); |
| 98 | task_index_ = thread_pool_->acquireTaskSlot(); |
| 99 | } |
| 100 | |
| 101 | int32_t CPUBackend::taskIndex() { return task_index_; } |
| 102 |
no test coverage detected