Lines Matching refs:ThreadPool
22 static ThreadPool* g_threadPool = nullptr;
35 ThreadPool* ThreadPool::CreateThreadPool(int number)
41 g_threadPool = new ThreadPool();
46 void ThreadPool::Destroy()
56 void ThreadPool::Init(int32_t number)
74 void ThreadPool::ThreadRun(int32_t threadIndex)
88 ThreadPool::~ThreadPool()
104 void ThreadPool::AddTask(Task &&task)
111 void ThreadPool::AddNewTask(Task &&task)
115 USCRIPT_LOGI("ThreadPool::AddNewTask Failed");
125 int32_t ThreadPool::AcquireWorkIndex()
137 void ThreadPool::RunTask(Task &&task, int32_t index)