History

put m_cIdleThreads to CWelsCircleQueue rather than std::map https://rbcommons.com/s/OpenH264/r/1313/

Sijia Chen committed 11 years ago

Commit bc566f01 parent eb00d5c6 files · +183 −43Browse files

Showing the changes to codec/common/src/WelsThreadLib.cpp (1 of 6 files). Show all

Unified · Split

codec/common/src/WelsThreadLib.cpp+3−4
@@ -174,6 +174,9 @@ WELS_THREAD_ERROR_CODE WelsEventClose (WELS_EVENT* event, const char* event_n · 173 unmodified lines
174174 return WELS_THREAD_ERROR_OK;
175175 }
176176
177+void WelsSleep (uint32_t dwMilliSecond) {
178+ ::Sleep (dwMilliSecond);
179+}
177180
178181 WELS_THREAD_ERROR_CODE WelsThreadCreate (WELS_THREAD_HANDLE* thread, LPWELS_THREAD_ROUTINE routine,
179182 void* arg, WELS_THREAD_ATTR attr) {
@@ -332,11 +335,7 @@ WELS_THREAD_ERROR_CODE WelsEventWait (WELS_EVENT* event) { · 152 unmodified lines
332335 }
333336
334337 void WelsSleep (uint32_t dwMilliSecond) {
335−#ifdef WIN32
336− ::Sleep (dwMilliSecond);
337−#else
338338 usleep (dwMilliSecond * 1000);
339−#endif
340339 }
341340
342341 WELS_THREAD_ERROR_CODE WelsEventWaitWithTimeOut (WELS_EVENT* event, uint32_t dwMilliseconds) {

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