platform: fixed initial value of m_thread in CThread
[deb_libcec.git] / src / lib / platform / posix / os-threads.h
index 89f822b0dec300a89aee85d2f55e62871fac9080..e5f935cf64ac9d24ff0c7637b53725755671c417 100644 (file)
@@ -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)