X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Fplatform%2Fwindows%2Fos-threads.h;h=ff773f094cab69aca2374e9b5c30a2a0200db277;hb=f4351350f339f844371a981524b80b00f92ca22a;hp=3714c16711950919edd768708e5d2cee4fa48594;hpb=1bede530033f40a81400c7a1e4ed0e8755d4ec59;p=deb_libcec.git diff --git a/src/lib/platform/windows/os-threads.h b/src/lib/platform/windows/os-threads.h index 3714c16..ff773f0 100644 --- a/src/lib/platform/windows/os-threads.h +++ b/src/lib/platform/windows/os-threads.h @@ -34,6 +34,7 @@ namespace PLATFORM { #define thread_t HANDLE + #define INVALID_THREAD_VALUE INVALID_HANDLE #define ThreadsWait(thread, retVal) (::WaitForSingleObject(thread, INFINITE) < 0) #define ThreadsCreate(thread, func, arg) ((thread = ::CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)func, arg, 0, NULL)) == NULL ? false : true)