egl: Support per-thread info.
authorChia-I Wu <olvaffe@gmail.com>
Fri, 17 Jul 2009 17:41:02 +0000 (11:41 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Jul 2009 17:41:02 +0000 (11:41 -0600)
commit75da80b29556e6dbbba21e5297ca440e475f65cb
tree8ae922d896d77df1e70768edaace6e12462d9bc4
parent8e92ec9fdd58bdfcdef65a995988974d3266b9ad
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>
configs/default
src/egl/main/Makefile
src/egl/main/eglapi.c
src/egl/main/eglcontext.c
src/egl/main/eglcontext.h
src/egl/main/egldisplay.c
src/egl/main/egldisplay.h
src/egl/main/eglglobals.c
src/egl/main/eglglobals.h
src/egl/main/eglsurface.c
src/egl/main/eglsurface.h