History

Fix the build for Windows Phone and Windows Store

Move function redirects to WelsThreadLib.h where they are available for wels_decoder_thread.cpp, redirect CreateSemaphore to CreateSemaphoreEx when necessary.

Martin Storsjö committed 7 years ago

Commit 8a0074b1 parent a5839932 files · +13 −12Browse files

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

Unified · Split

codec/common/src/WelsThreadLib.cpp+0−12
@@ -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
86WELS_THREAD_ERROR_CODE WelsMutexInit (WELS_MUTEX* mutex) {74WELS_THREAD_ERROR_CODE WelsMutexInit (WELS_MUTEX* mutex) {
87 InitializeCriticalSection (mutex);75 InitializeCriticalSection (mutex);
88 76

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