X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fposix%2Fos-threads.h;h=e5f935cf64ac9d24ff0c7637b53725755671c417;hb=622f7c33630a30fbfdd25ca4ff97add39ebc0905;hp=89f822b0dec300a89aee85d2f55e62871fac9080;hpb=3a99ce7f6d43f2bb1b35d7365d1ca476cd967626;p=deb_libcec.git diff --git a/src/lib/platform/posix/os-threads.h b/src/lib/platform/posix/os-threads.h index 89f822b..e5f935c 100644 --- a/src/lib/platform/posix/os-threads.h +++ b/src/lib/platform/posix/os-threads.h @@ -64,6 +64,7 @@ namespace PLATFORM } typedef pthread_t thread_t; + #define INVALID_THREAD_VALUE 0 #define ThreadsCreate(thread, func, arg) (pthread_create(&thread, NULL, (void *(*) (void *))func, (void *)arg) == 0) #define ThreadsWait(thread, retval) (thread ? pthread_join(thread, retval) == 0 : true)