projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b6fdb6
)
c11: Fix missing pthread_mutex_timedlock declaration warnings on MacOSX.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 23 Jan 2014 13:42:38 +0000
(13:42 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 23 Jan 2014 13:42:38 +0000
(13:42 +0000)
include/c11/threads_posix.h
patch
|
blob
|
history
diff --git
a/include/c11/threads_posix.h
b/include/c11/threads_posix.h
index 047e2eae55ca84a0e230330973525bff5db273bc..e54af39f98d8249ab1101fc011da9640d27b36dd 100644
(file)
--- a/
include/c11/threads_posix.h
+++ b/
include/c11/threads_posix.h
@@
-41,7
+41,7
@@
Configuration macro:
Use pthread_mutex_timedlock() for `mtx_timedlock()'
Otherwise use mtx_trylock() + *busy loop* emulation.
*/
-#if !defined(__CYGWIN__)
+#if !defined(__CYGWIN__)
&& !defined(__APPLE__)
#define EMULATED_THREADS_USE_NATIVE_TIMEDLOCK
#endif
@@
-196,6
+196,12
@@
mtx_lock(mtx_t *mtx)
return thrd_success;
}
+static inline int
+mtx_trylock(mtx_t *mtx);
+
+static inline void
+thrd_yield(void);
+
// 7.25.4.4
static inline int
mtx_timedlock(mtx_t *mtx, const xtime *xt)