Lines Matching refs:CWelsThreadPool
55 int32_t CWelsThreadPool::m_iRefCount = 0;
56 int32_t CWelsThreadPool::m_iMaxThreadNum = DEFAULT_THREAD_NUM;
57 CWelsThreadPool* CWelsThreadPool::m_pThreadPoolSelf = NULL;
59 CWelsThreadPool::CWelsThreadPool() : in CWelsThreadPool() function in WelsCommon::CWelsThreadPool
64 CWelsThreadPool::~CWelsThreadPool() { in ~CWelsThreadPool()
72 WELS_THREAD_ERROR_CODE CWelsThreadPool::SetThreadNum (int32_t iMaxThreadNum) { in SetThreadNum()
87 CWelsThreadPool* CWelsThreadPool::AddReference() { in AddReference()
90 m_pThreadPoolSelf = new CWelsThreadPool(); in AddReference()
112 void CWelsThreadPool::RemoveInstance() { in RemoveInstance()
128 bool CWelsThreadPool::IsReferenced() { in IsReferenced()
134 WELS_THREAD_ERROR_CODE CWelsThreadPool::OnTaskStart (CWelsTaskThread* pThread, IWelsTask* pTask) { in OnTaskStart()
140 WELS_THREAD_ERROR_CODE CWelsThreadPool::OnTaskStop (CWelsTaskThread* pThread, IWelsTask* pTask) { in OnTaskStop()
162 WELS_THREAD_ERROR_CODE CWelsThreadPool::Init() { in Init()
187 WELS_THREAD_ERROR_CODE CWelsThreadPool::StopAllRunning() { in StopAllRunning()
204 WELS_THREAD_ERROR_CODE CWelsThreadPool::Uninit() { in Uninit()
229 void CWelsThreadPool::ExecuteTask() { in ExecuteTask()
251 WELS_THREAD_ERROR_CODE CWelsThreadPool::QueueTask (IWelsTask* pTask) { in QueueTask()
275 WELS_THREAD_ERROR_CODE CWelsThreadPool::CreateIdleThread() { in CreateIdleThread()
291 void CWelsThreadPool::DestroyThread (CWelsTaskThread* pThread) { in DestroyThread()
298 WELS_THREAD_ERROR_CODE CWelsThreadPool::AddThreadToIdleQueue (CWelsTaskThread* pThread) { in AddThreadToIdleQueue()
304 WELS_THREAD_ERROR_CODE CWelsThreadPool::AddThreadToBusyList (CWelsTaskThread* pThread) { in AddThreadToBusyList()
310 WELS_THREAD_ERROR_CODE CWelsThreadPool::RemoveThreadFromBusyList (CWelsTaskThread* pThread) { in RemoveThreadFromBusyList()
319 bool CWelsThreadPool::AddTaskToWaitedList (IWelsTask* pTask) { in AddTaskToWaitedList()
325 CWelsTaskThread* CWelsThreadPool::GetIdleThread() { in GetIdleThread()
339 int32_t CWelsThreadPool::GetBusyThreadNum() { in GetBusyThreadNum()
343 int32_t CWelsThreadPool::GetIdleThreadNum() { in GetIdleThreadNum()
347 int32_t CWelsThreadPool::GetWaitedTaskNum() { in GetWaitedTaskNum()
351 IWelsTask* CWelsThreadPool::GetWaitedTask() { in GetWaitedTask()
365 void CWelsThreadPool::ClearWaitedTasks() { in ClearWaitedTasks()