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

Method enqueue

source/backend/cpu/ThreadPool.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void ThreadPool::enqueue(TASK* taskp, int index) {
122 auto& task = *taskp;
123 if (1 >= task.second || 0 > index) {
124 for (int i = 0; i < task.second; ++i) {
125 task.first(i);
126 }
127 return;
128 }
129 enqueueInternal(taskp, index);
130}
131void ThreadPool::enqueueInternal(TASK* taskp, int index) {
132 auto& task = *taskp;
133 if (mActiveCount == 0) {

Callers 3

checkForUpdatesMethod · 0.45
downloadApkMethod · 0.45
_bindCPUCoreMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected