Home
last modified time | relevance | path

Searched refs:g_threadPool (Results 1 – 1 of 1) sorted by relevance

/base/update/updater/services/script/threadpool/
Dthreadpool.cpp20 static ThreadPool* g_threadPool = nullptr; variable
30 if (g_threadPool != nullptr) { in CreateThreadPool()
31 return g_threadPool; in CreateThreadPool()
33 g_threadPool = new ThreadPool(); in CreateThreadPool()
34 g_threadPool->Init(number); in CreateThreadPool()
35 return g_threadPool; in CreateThreadPool()
40 if (g_threadPool == nullptr) { in Destroy()
44 delete g_threadPool; in Destroy()
45 g_threadPool = nullptr; in Destroy()
96 if (g_threadPool != nullptr) { in AddTask()
[all …]