projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd978ce
)
os/os_thread: Revert pipe_barrier pre-processing logic.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 23 Jan 2014 13:44:10 +0000
(13:44 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 23 Jan 2014 13:44:10 +0000
(13:44 +0000)
Whitelist platforms instead of blacklisting, as several pthread
implementations are missing pthread_barrier_t, in particular MacOSX.
src/gallium/auxiliary/os/os_thread.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/os/os_thread.h
b/src/gallium/auxiliary/os/os_thread.h
index 1d802d23d178891807e5e04758a4f80b1759021f..ff46a891fe0c924e225cc88a7b3c0a1dbf8e6180 100644
(file)
--- a/
src/gallium/auxiliary/os/os_thread.h
+++ b/
src/gallium/auxiliary/os/os_thread.h
@@
-130,7
+130,7
@@
typedef cnd_t pipe_condvar;
* pipe_barrier
*/
-#if
defined(HAVE_PTHREAD
) && !defined(PIPE_OS_ANDROID)
+#if
(defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_HURD)
) && !defined(PIPE_OS_ANDROID)
typedef pthread_barrier_t pipe_barrier;