fix the prob in case that the task uID is too big

This commit is contained in:
sijchen 2016-01-15 16:06:09 -08:00
parent d11f12db54
commit d46cd07511

View File

@ -24,7 +24,8 @@ class CSimpleTask : public IWelsTask {
} }
virtual int32_t Execute() { 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); //printf ("Task %d executing\n", m_uiID);
return cmResultSuccess; return cmResultSuccess;
} }