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

Method destroy

source/backend/cpu/ThreadPool.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ThreadPool::destroy() {
36 std::lock_guard<std::mutex> _l(gInitMutex);
37 for (auto i= gInstances.begin(); i != gInstances.end(); i++){
38 if (i->second){
39 delete i->second;
40 }
41 }
42 gInstances.clear();
43}
44
45ThreadPool::ThreadPool(int numberThread) {
46 mNumberThread = numberThread;

Callers 6

onSetCacheMethod · 0.45
unInitMethod · 0.45
onResizeEndMethod · 0.45
CreateNetworkFunction · 0.45
testTensorRTFunction · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by 2

CreateNetworkFunction · 0.36
testTensorRTFunction · 0.36