MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / initThreadPool

Method initThreadPool

mllm/backends/cpu/CPUBackend.cpp:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93HpcThreadPool::ptr_t CPUBackend::getThreadPool() { return thread_pool_; }
94
95void 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
101int32_t CPUBackend::taskIndex() { return task_index_; }
102

Callers 1

initializeContextFunction · 0.80

Calls 2

activateMethod · 0.80
acquireTaskSlotMethod · 0.80

Tested by

no test coverage detected