4 #include "mapi/u_thread.h"
6 #define _glthread_DECLARE_STATIC_MUTEX(name) u_mutex_declare_static(name)
7 #define _glthread_INIT_MUTEX(name) u_mutex_init(name)
8 #define _glthread_DESTROY_MUTEX(name) u_mutex_destroy(name)
9 #define _glthread_LOCK_MUTEX(name) u_mutex_lock(name)
10 #define _glthread_UNLOCK_MUTEX(name) u_mutex_unlock(name)
12 #define _glthread_InitTSD(tsd) u_tsd_init(tsd);
13 #define _glthread_DestroyTSD(tsd) u_tsd_destroy(tsd);
14 #define _glthread_GetTSD(tsd) u_tsd_get(tsd);
15 #define _glthread_SetTSD(tsd, ptr) u_tsd_set(tsd, ptr);
17 typedef struct u_tsd _glthread_TSD
;
18 typedef u_mutex _glthread_Mutex
;
20 #endif /* GLTHREAD_H */