egl: Support per-thread info.

This commit introduces a "current" system to manage per-thread info.  It
uses TLS, if GLX_USE_TLS is defined, or pthread, if PTHREADS is defined.
If none of them are defined, it uses a dummy implementation that is just
like before.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
Chia-I Wu
2009-07-17 11:41:02 -06:00
committed by Brian Paul
parent 8e92ec9fdd
commit 75da80b295
11 changed files with 23 additions and 196 deletions

View File

@@ -45,10 +45,6 @@ extern void
_eglSaveDisplay(_EGLDisplay *dpy);
extern _EGLDisplay *
_eglGetCurrentDisplay(void);
extern void
_eglCleanupDisplay(_EGLDisplay *disp);