egl: Destroy eglThreadInfo on thread exit.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 10 Aug 2009 04:20:31 +0000 (12:20 +0800)
committerBrian Paul <brianp@vmware.com>
Wed, 12 Aug 2009 04:14:35 +0000 (22:14 -0600)
commitf6c2f5e37925abe3ea7036b7a3bd6ca1721e4f73
tree665e49ffb7235272024e3a3f1de3051183b96e17
parente79d21ca1f11e5b584db0930eb0cf49869b0e77d
egl: Destroy eglThreadInfo on thread exit.

This is done through pthread TSD destructor.  It destroys all thread
infos except for main thread's.  The thread info of the main thread is
destroyed by _eglFiniCurrent.

TLS case is not supported yet.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/egl/main/eglcurrent.c