diff options
author | Brian Paul <[email protected]> | 2014-03-05 16:06:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-03-06 07:53:06 -0700 |
commit | 84094a273e3ceeead5b6c86d3d8244374ea6fb1c (patch) | |
tree | 8cb0771255a1074c9d903dcfd8ddb3334b78b106 /src/mapi/u_thread.h | |
parent | 846a7e86309ab3877af6b7d3a63880468dfacbd3 (diff) |
glapi: remove u_mutex wrapper code, use c99 thread mutexes directly
v2: fix initializer mistake spotted by Chia-I Wu.
Reviewed-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/mapi/u_thread.h')
-rw-r--r-- | src/mapi/u_thread.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mapi/u_thread.h b/src/mapi/u_thread.h index 0fc93929c99..4b9ed164cda 100644 --- a/src/mapi/u_thread.h +++ b/src/mapi/u_thread.h @@ -79,16 +79,6 @@ struct u_tsd { unsigned initMagic; }; -typedef mtx_t u_mutex; - -#define u_mutex_declare_static(name) \ - static u_mutex name = _MTX_INITIALIZER_NP - -#define u_mutex_init(name) mtx_init(&(name), mtx_plain) -#define u_mutex_destroy(name) mtx_destroy(&(name)) -#define u_mutex_lock(name) (void) mtx_lock(&(name)) -#define u_mutex_unlock(name) (void) mtx_unlock(&(name)) - static INLINE unsigned long u_thread_self(void) |