MCPcopy Create free account
hub / github.com/cisco/openh264 / CreateIdleThread

Method CreateIdleThread

codec/common/src/WelsThreadPool.cpp:275–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275WELS_THREAD_ERROR_CODE CWelsThreadPool::CreateIdleThread() {
276 CWelsTaskThread* pThread = new CWelsTaskThread (this);
277
278 if (NULL == pThread) {
279 return WELS_THREAD_ERROR_GENERAL;
280 }
281
282 if (WELS_THREAD_ERROR_OK != pThread->Start()) {
283 return WELS_THREAD_ERROR_GENERAL;
284 }
285 //fprintf(stdout, "ThreadPool: AddThreadToIdleQueue: %x\n", pThread);
286 AddThreadToIdleQueue (pThread);
287
288 return WELS_THREAD_ERROR_OK;
289}
290
291void CWelsThreadPool::DestroyThread (CWelsTaskThread* pThread) {
292 pThread->Kill();

Callers

nothing calls this directly

Calls 1

StartMethod · 0.80

Tested by

no test coverage detected