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
174 return WELS_THREAD_ERROR_OK;174 return WELS_THREAD_ERROR_OK;
175}175}
176 176
177void WelsSleep (uint32_t dwMilliSecond) {
178 ::Sleep (dwMilliSecond);
179}
177 180
178WELS_THREAD_ERROR_CODE WelsThreadCreate (WELS_THREAD_HANDLE* thread, LPWELS_THREAD_ROUTINE routine,181WELS_THREAD_ERROR_CODE WelsThreadCreate (WELS_THREAD_HANDLE* thread, LPWELS_THREAD_ROUTINE routine,
179 void* arg, WELS_THREAD_ATTR attr) {182 void* arg, WELS_THREAD_ATTR attr) {
@@ -332,11 +335,7 @@ WELS_THREAD_ERROR_CODE WelsEventWait (WELS_EVENT* event) { · 152 unmodified lines
332}335}
333 336
334void WelsSleep (uint32_t dwMilliSecond) {337void WelsSleep (uint32_t dwMilliSecond) {
335#ifdef WIN32
336 ::Sleep (dwMilliSecond);
337#else
338 usleep (dwMilliSecond * 1000);338 usleep (dwMilliSecond * 1000);
339#endif
340}339}
341 340
342WELS_THREAD_ERROR_CODE WelsEventWaitWithTimeOut (WELS_EVENT* event, uint32_t dwMilliseconds) {341WELS_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