fix the prob in case that the task uID is too big
This commit is contained in:
parent
d11f12db54
commit
d46cd07511
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user