| 100 | return -1; |
| 101 | } |
| 102 | void 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 | |
| 110 | void ThreadPool::active() { |
| 111 | { |
no outgoing calls