History

fix a return value of push_back

sijchen@cisco.com committed 9 years ago

Commit a78217d1 parent a136ba71 file · +1 −3Browse files

Showing the changes to codec/common/src/WelsThreadPool.cpp (1 of 1 file). Show all

Unified · Split

codec/common/src/WelsThreadPool.cpp+1−3
@@ -303,9 +303,7 @@ WELS_THREAD_ERROR_CODE CWelsThreadPool::RemoveThreadFromBusyList (CWelsTaskThrea · 302 unmodified lines
303303 bool CWelsThreadPool::AddTaskToWaitedList (IWelsTask* pTask) {
304304 CWelsAutoLock cLock (m_cLockWaitedTasks);
305305
306− int32_t nRet = m_cWaitedTasks->push_back (pTask);
307− //fprintf(stdout, "CWelsThreadPool::AddTaskToWaitedList=%d, pTask=%x\n", m_cWaitedTasks->size(), pTask);
308− return (0 == nRet ? true : false);
306+ return m_cWaitedTasks->push_back (pTask);
309307 }
310308
311309 CWelsTaskThread* CWelsThreadPool::GetIdleThread() {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t