Module: Mesa Branch: master Commit: db6d0d9ebf20bfc16ebabd3ff9e8f560ac306210 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db6d0d9ebf20bfc16ebabd3ff9e8f560ac306210
Author: José Fonseca <[email protected]> Date: Sun Mar 6 09:10:38 2011 +0000 os: Fix pipe_static_mutex on Windows. --- src/gallium/auxiliary/os/os_thread.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index a084310..8173d4c 100644 --- 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) _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
