MCPcopy Create free account
hub / github.com/alibaba/MNN / releaseWorkIndex

Method releaseWorkIndex

source/backend/cpu/ThreadPool.cpp:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 return -1;
101}
102void ThreadPool::releaseWorkIndex(int index) {
103 if (index < 0 || index >= MNN_THREAD_POOL_MAX_TASKS) {
104 return;
105 }
106 std::lock_guard<std::mutex> _l(mQueueMutex);
107 mTaskAvailable[index] = true;
108}
109
110void ThreadPool::active() {
111 {

Callers 2

onConcurrencyEndMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by 1

runMethod · 0.64