repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only match one interface, not all three when detecting devices on linux and darwin
[deb_libcec.git]
/
src
/
lib
/
platform
/
posix
/
os-threads.h
diff --git
a/src/lib/platform/posix/os-threads.h
b/src/lib/platform/posix/os-threads.h
index 8b56731adfa2918f2a290e71dd4acc62ce2b7709..e5f935cf64ac9d24ff0c7637b53725755671c417 100644
(file)
--- a/
src/lib/platform/posix/os-threads.h
+++ b/
src/lib/platform/posix/os-threads.h
@@
-64,9
+64,10
@@
namespace PLATFORM
}
typedef pthread_t thread_t;
}
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 ThreadsCreate(thread, func, arg) (pthread_create(&thread, NULL, (void *(*) (void *))func, (void *)arg) == 0)
- #define ThreadsWait(thread, retval) (
pthread_join(thread, retval) == 0
)
+ #define ThreadsWait(thread, retval) (
thread ? pthread_join(thread, retval) == 0 : true
)
typedef pthread_mutex_t mutex_t;
#define MutexCreate(mutex) pthread_mutex_init(&mutex, GetRecursiveMutexAttribute());
typedef pthread_mutex_t mutex_t;
#define MutexCreate(mutex) pthread_mutex_init(&mutex, GetRecursiveMutexAttribute());