projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1b310
)
os: Fix pipe_static_mutex on Windows.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Sun, 6 Mar 2011 09:10:38 +0000
(09:10 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Sun, 6 Mar 2011 09:10:38 +0000
(09:10 +0000)
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 a084310d4ff1bb17190a1136beaa51e70243568c..8173d4cc37ff2a124f55f59f057cf9c84ccb1db1 100644
(file)
--- a/
src/gallium/auxiliary/os/os_thread.h
+++ b/
src/gallium/auxiliary/os/os_thread.h
@@
-152,8
+152,9
@@
static INLINE int pipe_thread_destroy( pipe_thread thread )
*/
typedef CRITICAL_SECTION pipe_mutex;
+/* http://locklessinc.com/articles/pthreads_on_windows/ */
#define pipe_static_mutex(mutex) \
-
/*static*/ pipe_mutex mutex = {0,0,0,0,0,
0}
+
static pipe_mutex mutex = {(PCRITICAL_SECTION_DEBUG)-1, -1, 0, 0, 0,
0}
#define pipe_mutex_init(mutex) \
InitializeCriticalSection(&mutex)