Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / mesa / src / mapi / glapi / glthread.h
blobfc4ece7c3384e57fc8ac2bda13d3e3c54b77cd52
1 #ifndef GLTHREAD_H
2 #define GLTHREAD_H
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 */