diff options
author | Brian Paul <[email protected]> | 2014-03-01 10:21:07 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-03-03 13:08:58 -0700 |
commit | d129ea7fa2e57288f64cd247a0ac6d876e1717d2 (patch) | |
tree | 599098d707f4b1c506b0e8ac4f614ea2a5d2de4f /src/mesa/main/errors.c | |
parent | 2706db701d6217d245325f90f014233ff40ba18c (diff) |
mesa: switch to c11 mutex functions
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r-- | src/mesa/main/errors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 5f4eac6eb4f..603dfc9efba 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -42,7 +42,7 @@ #define MESSAGE_LOG 1 #define MESSAGE_LOG_ARB 2 -_glthread_DECLARE_STATIC_MUTEX(DynamicIDMutex); +static mtx_t DynamicIDMutex = _MTX_INITIALIZER_NP; static GLuint NextDynamicID = 1; struct gl_debug_severity @@ -136,10 +136,10 @@ static void debug_get_id(GLuint *id) { if (!(*id)) { - _glthread_LOCK_MUTEX(DynamicIDMutex); + mtx_lock(&DynamicIDMutex); if (!(*id)) *id = NextDynamicID++; - _glthread_UNLOCK_MUTEX(DynamicIDMutex); + mtx_unlock(&DynamicIDMutex); } } |