From a360ab2a33d60182323de4a3f22dd8f4b8cea1e0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 10 Feb 2000 21:54:06 +0000 Subject: THREADS now defined by glthread.h, added more prototypes --- src/mesa/glapi/glthread.c | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) (limited to 'src/mesa/glapi/glthread.c') diff --git a/src/mesa/glapi/glthread.c b/src/mesa/glapi/glthread.c index ad6380328d..66f801535e 100644 --- a/src/mesa/glapi/glthread.c +++ b/src/mesa/glapi/glthread.c @@ -1,4 +1,4 @@ -/* $Id: glthread.c,v 1.4 2000/02/10 21:27:25 brianp Exp $ */ +/* $Id: glthread.c,v 1.5 2000/02/10 21:54:06 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -35,18 +35,16 @@ #include "all.h" #else #include "glheader.h" +#include "glthread.h" #endif - /* * This file should still compile even when THREADS is not defined. * This is to make things easier to deal with on the makefile scene.. */ #ifdef THREADS #include -#include "glthread.h" - /* * Error messages @@ -293,6 +291,42 @@ _glthread_SetTSD(_glthread_TSD *tsd, void *ptr) #endif /* XTHREAD */ -#endif /* THREADS */ +#else /* THREADS */ + + +/* + * no-op functions + */ + +unsigned long +_glthread_GetID(void) +{ + return 0; +} + + +void +_glthread_InitTSD(_glthread_TSD *tsd) +{ + (void) tsd; +} + + +void * +_glthread_GetTSD(_glthread_TSD *tsd) +{ + (void) tsd; + return NULL; +} + +void +_glthread_SetTSD(_glthread_TSD *tsd, void *ptr) +{ + (void) tsd; + (void) ptr; +} + + +#endif /* THREADS */ -- cgit v1.2.3