Move function redirects to WelsThreadLib.h where they are available for wels_decoder_thread.cpp, redirect CreateSemaphore to CreateSemaphoreEx when necessary.
Showing the changes to codec/common/src/WelsThreadLib.cpp (1 of 2 files). Show all
Unified · Split
| @@ -71,18 +71,6 @@ · 70 unmodified lines | |||
| 71 | 71 | ||
| 72 | #if defined(_WIN32) || defined(__CYGWIN__) | 72 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 73 | 73 | ||
| 74 | #ifdef WINAPI_FAMILY | ||
| 75 | #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) | ||
| 76 | #define WP80 | ||
| 77 | |||
| 78 | #define InitializeCriticalSection(x) InitializeCriticalSectionEx(x, 0, 0) | ||
| 79 | #define GetSystemInfo(x) GetNativeSystemInfo(x) | ||
| 80 | #define CreateEvent(attr, reset, init, name) CreateEventEx(attr, name, ((reset) ? CREATE_EVENT_MANUAL_RESET : 0) | ((init) ? CREATE_EVENT_INITIAL_SET : 0), EVENT_ALL_ACCESS) | ||
| 81 | #define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE) | ||
| 82 | #define WaitForMultipleObjects(a, b, c, d) WaitForMultipleObjectsEx(a, b, c, d, FALSE) | ||
| 83 | #endif | ||
| 84 | #endif | ||
| 85 | |||
| 86 | WELS_THREAD_ERROR_CODE WelsMutexInit (WELS_MUTEX* mutex) { | 74 | WELS_THREAD_ERROR_CODE WelsMutexInit (WELS_MUTEX* mutex) { |
| 87 | InitializeCriticalSection (mutex); | 75 | InitializeCriticalSection (mutex); |
| 88 | 76 | ||