summaryrefslogtreecommitdiffstats
path: root/src/mapi/u_thread.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-03-05 16:06:00 -0700
committerBrian Paul <[email protected]>2014-03-06 07:53:06 -0700
commit84094a273e3ceeead5b6c86d3d8244374ea6fb1c (patch)
tree8cb0771255a1074c9d903dcfd8ddb3334b78b106 /src/mapi/u_thread.h
parent846a7e86309ab3877af6b7d3a63880468dfacbd3 (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.h10
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)