ref: d46cd075110149265df58d10eb5b1f62d20ad428
parent: d11f12db54682e80a48d352a96577e3a34b162cc
author: sijchen <sijchen@cisco.com>
date: Fri Jan 15 11:06:09 EST 2016
fix the prob in case that the task uID is too big
--- a/test/common/WelsThreadPoolTest.cpp
+++ b/test/common/WelsThreadPoolTest.cpp
@@ -24,7 +24,8 @@
}
virtual int32_t Execute() {
- WelsSleep (300 - m_uiID);
+ uint32_t uiSleepTime = (m_uiID > 99) ? 10 : m_uiID;
+ WelsSleep (uiSleepTime);
//printf ("Task %d executing\n", m_uiID);
return cmResultSuccess;
}