History

Fix threading on windows after c51a4ff09

After this commit, is is expected that WelsEventSignal decrements the integer - but this wasn't done on windows.

Martin Storsjö committed 9 years ago

Commit f96e7e41 parent 35d921b1 file · +5 −2Browse files

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

Unified · Split

codec/common/src/WelsThreadLib.cpp+5−2
@@ -141,8 +141,11 @@ WELS_THREAD_ERROR_CODE WelsEventOpen (WELS_EVENT* event, const char* event_na · 140 unmodified lines
141141 }
142142
143143 WELS_THREAD_ERROR_CODE WelsEventSignal (WELS_EVENT* event, WELS_MUTEX *pMutex, int* iCondition) {
144− if (SetEvent (*event)) {
145− return WELS_THREAD_ERROR_OK;
144+ (*iCondition) --;
145+ if ((*iCondition) <= 0) {
146+ if (SetEvent (*event)) {
147+ return WELS_THREAD_ERROR_OK;
148+ }
146149 }
147150 return WELS_THREAD_ERROR_GENERAL;
148151 }

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