From e2b10e72a641d0450bd7c537af2929381371770f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 17 Dec 1999 11:13:54 +0000 Subject: don't free thread data in pthread_key_create() --- src/mesa/glapi/glthread.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/mesa/glapi/glthread.c b/src/mesa/glapi/glthread.c index f4a68f21ef..84e669e44f 100644 --- a/src/mesa/glapi/glthread.c +++ b/src/mesa/glapi/glthread.c @@ -1,4 +1,4 @@ -/* $Id: glthread.c,v 1.1 1999/12/16 17:31:06 brianp Exp $ */ +/* $Id: glthread.c,v 1.2 1999/12/17 11:13:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -88,7 +88,7 @@ _glthread_GetID(void) void _glthread_InitTSD(_glthread_TSD *tsd) { - if (pthread_key_create(&tsd->key, free) != 0) { + if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) { perror(INIT_TSD_ERROR); exit(-1); } @@ -109,7 +109,7 @@ _glthread_SetTSD(_glthread_TSD *tsd, void *ptr, void (*initfunc)(void)) if (pthread_setspecific(tsd->key, ptr) != 0) { perror(SET_TSD_ERROR); exit(-1); - }; + } } #endif /* PTHREADS */ @@ -157,7 +157,7 @@ _glthread_GetTSD(_glthread_TSD *tsd) if ((errno = thr_getspecific(tsd->key, &ret)) != 0) { perror(GET_TSD_ERROR); exit(-1); - }; + } #endif return ret; } @@ -176,7 +176,7 @@ _glthread_SetTSD(_glthread_TSD *tsd, void *ptr, void (*initfunc)(void)) if ((errno = thr_setspecific(tsd->key, ptr)) != 0) { perror(SET_TSD_ERROR); exit(-1); - }; + } } #undef USE_LOCK_FOR_KEY @@ -233,7 +233,7 @@ _glthread_SetTSD(_glthread_TSD *tsd, void *ptr, void (*initfunc)(void)) applications? Does Windows have perror? */ /* perror(SET_TSD_ERROR);*/ exit(-1); - }; + } } #endif /* WIN32 */ -- cgit v1.2.3