ref: f06b6e8041c0a333da55cee1b67505f6b196125c
parent: 2081df8b25fe8fd781406f1fbf787305f0db7b41
parent: a78217dd5b9c8262e63eb180a2ed04b93db595fd
author: huili2 <huili2@cisco.com>
date: Wed Mar 15 10:24:09 EDT 2017
Merge pull request #2683 from sijchen/threadpool3 [Common] fix a return value of push_back
--- a/codec/common/src/WelsThreadPool.cpp
+++ b/codec/common/src/WelsThreadPool.cpp
@@ -303,9 +303,7 @@
bool CWelsThreadPool::AddTaskToWaitedList (IWelsTask* pTask) {
CWelsAutoLock cLock (m_cLockWaitedTasks);
- int32_t nRet = m_cWaitedTasks->push_back (pTask);
- //fprintf(stdout, "CWelsThreadPool::AddTaskToWaitedList=%d, pTask=%x\n", m_cWaitedTasks->size(), pTask);
- return (0 == nRet ? true : false);
+ return m_cWaitedTasks->push_back (pTask);
}
CWelsTaskThread* CWelsThreadPool::GetIdleThread() {