diff options
author | Brian Paul <[email protected]> | 2006-06-16 14:50:05 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-06-16 14:50:05 +0000 |
commit | 385f23edf91a366b2e81449632ba3862957a2a74 (patch) | |
tree | 61378612bdd021ecface03f6cd84ac75be5c32e2 /src/mesa/glapi/glapi.c | |
parent | c0168fabed24e9089b47895475c7030925cbf399 (diff) |
Thread safety for Win32. SourceForge bug #1507315.
Diffstat (limited to 'src/mesa/glapi/glapi.c')
-rw-r--r-- | src/mesa/glapi/glapi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index e353dd45435..c095de3961a 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -185,6 +185,15 @@ static GLboolean ThreadSafe = GL_FALSE; /**< In thread-safe mode? */ _glthread_TSD _gl_DispatchTSD; /**< Per-thread dispatch pointer */ static _glthread_TSD ContextTSD; /**< Per-thread context pointer */ +#if defined(WIN32_THREADS) +void FreeTSD(_glthread_TSD *p); +void FreeAllTSD(void) +{ + FreeTSD(&_gl_DispatchTSD); + FreeTSD(&ContextTSD); +} +#endif /* defined(WIN32_THREADS) */ + #endif /* defined(THREADS) */ PUBLIC struct _glapi_table *_glapi_Dispatch = |