mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 17:40:25 +01:00
glapi defines an interface that is used by DRI drivers. It must not be changed in an ABI incompatible way. This commit moves all functions/variables belong to the interface to glapi.h. Instead of including u_current.h from glapi.h, u_current.h now includes glapi.h.
20 lines
752 B
C
20 lines
752 B
C
#ifndef GLTHREAD_H
|
|
#define GLTHREAD_H
|
|
|
|
#include "mapi/u_thread.h"
|
|
|
|
#define _glthread_DECLARE_STATIC_MUTEX(name) u_mutex_declare_static(name)
|
|
#define _glthread_INIT_MUTEX(name) u_mutex_init(name)
|
|
#define _glthread_DESTROY_MUTEX(name) u_mutex_destroy(name)
|
|
#define _glthread_LOCK_MUTEX(name) u_mutex_lock(name)
|
|
#define _glthread_UNLOCK_MUTEX(name) u_mutex_unlock(name)
|
|
|
|
#define _glthread_InitTSD(tsd) u_tsd_init(tsd);
|
|
#define _glthread_DestroyTSD(tsd) u_tsd_destroy(tsd);
|
|
#define _glthread_GetTSD(tsd) u_tsd_get(tsd);
|
|
#define _glthread_SetTSD(tsd, ptr) u_tsd_set(tsd, ptr);
|
|
|
|
typedef struct u_tsd _glthread_TSD;
|
|
typedef u_mutex _glthread_Mutex;
|
|
|
|
#endif /* GLTHREAD_H */
|