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

Method activate

mllm/engine/HpcThreadPool.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void HpcThreadPool::activate() {
22 {
23 std::lock_guard<std::mutex> _l(queue_mutex_);
24 available_task_slots_++;
25 available_task_slots_old_++;
26 }
27
28 // Tell somebody we can work
29 condition_.notify_all();
30}
31
32void HpcThreadPool::deactivate() {
33 available_task_slots_--;

Callers 1

initThreadPoolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected