summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glthread.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-02-10 21:54:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-02-10 21:54:06 +0000
commita360ab2a33d60182323de4a3f22dd8f4b8cea1e0 (patch)
tree857e3acdd28b73b3e1dce0a676d88fdad4978320 /src/mesa/glapi/glthread.c
parent3c27be3738f42cb7424483a92dd05259909e54a9 (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.c44
1 files changed, 39 insertions, 5 deletions
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 <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 */