Merge pull request #2334 from sijchen/fix_ut

[UT] fix the prob in case that the task uID is too big
This commit is contained in:
HaiboZhu 2016-01-19 15:39:17 +08:00
commit 21c1c02441

View File

@ -24,7 +24,8 @@ class CSimpleTask : public IWelsTask {
}
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;
}