diff options
author | Brian Paul <[email protected]> | 2000-02-10 21:54:06 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-02-10 21:54:06 +0000 |
commit | a360ab2a33d60182323de4a3f22dd8f4b8cea1e0 (patch) | |
tree | 857e3acdd28b73b3e1dce0a676d88fdad4978320 /src/mesa/glapi/glthread.c | |
parent | 3c27be3738f42cb7424483a92dd05259909e54a9 (diff) |
THREADS now defined by glthread.h, added more prototypes
Diffstat (limited to 'src/mesa/glapi/glthread.c')
-rw-r--r-- | src/mesa/glapi/glthread.c | 44 |
1 files changed, 39 insertions, 5 deletions
diff --git a/src/mesa/glapi/glthread.c b/src/mesa/glapi/glthread.c index ad6380328df..66f801535e8 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 <errno.h> -#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 */ |