History

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

sijchen committed 10 years ago

Commit d46cd071 parent d11f12d1 file · +2 −1Browse files

Showing the changes to test/common/WelsThreadPoolTest.cpp (1 of 1 file). Show all

Unified · Split

test/common/WelsThreadPoolTest.cpp+2−1
@@ -24,7 +24,8 @@ class CSimpleTask : public IWelsTask { · 23 unmodified lines
24 }24 }
25 25
26 virtual int32_t Execute() {26 virtual int32_t Execute() {
27 WelsSleep (300 - m_uiID);27 uint32_t uiSleepTime = (m_uiID > 99) ? 10 : m_uiID;
28 WelsSleep (uiSleepTime);
28 //printf ("Task %d executing\n", m_uiID);29 //printf ("Task %d executing\n", m_uiID);
29 return cmResultSuccess;30 return cmResultSuccess;
30 }31 }

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