summaryrefslogtreecommitdiffstats
path: root/src/glx/glxclient.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-03-06 16:54:59 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2015-03-11 23:28:26 +0000
commita385d18598b28bf935e4460b86ce3f9e095a8015 (patch)
tree1b751baf82f6c726242e6909dc796728f2e058c5 /src/glx/glxclient.h
parent42144170d189d2539a4fb2243200e760114af9f7 (diff)
downloadexternal_mesa3d-a385d18598b28bf935e4460b86ce3f9e095a8015.zip
external_mesa3d-a385d18598b28bf935e4460b86ce3f9e095a8015.tar.gz
external_mesa3d-a385d18598b28bf935e4460b86ce3f9e095a8015.tar.bz2
glx: remove support for non-multithreaded platforms
Implicitly required for a while, although commit 9385c592c68 (mapi: remove u_thread.h) was the one that put the final nail on the coffin. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/glx/glxclient.h')
-rw-r--r--src/glx/glxclient.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h
index 122ae5d..2776b44 100644
--- a/src/glx/glxclient.h
+++ b/src/glx/glxclient.h
@@ -48,12 +48,10 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
+#include <pthread.h>
#include "GL/glxproto.h"
#include "glxconfig.h"
#include "glxhash.h"
-#if defined( HAVE_PTHREAD )
-# include <pthread.h>
-#endif
#include "util/macros.h"
#include "glxextensions.h"
@@ -629,7 +627,6 @@ extern void __glXPreferEGL(int state);
extern int __glXDebug;
/* This is per-thread storage in an MT environment */
-#if defined( HAVE_PTHREAD )
extern void __glXSetCurrentContext(struct glx_context * c);
@@ -646,14 +643,6 @@ extern struct glx_context *__glXGetCurrentContext(void);
# endif /* defined( GLX_USE_TLS ) */
-#else
-
-extern struct glx_context *__glXcurrentContext;
-#define __glXGetCurrentContext() __glXcurrentContext
-#define __glXSetCurrentContext(gc) __glXcurrentContext = gc
-
-#endif /* defined( HAVE_PTHREAD ) */
-
extern void __glXSetCurrentContextNull(void);
@@ -661,14 +650,9 @@ extern void __glXSetCurrentContextNull(void);
** Global lock for all threads in this address space using the GLX
** extension
*/
-#if defined( HAVE_PTHREAD )
extern pthread_mutex_t __glXmutex;
#define __glXLock() pthread_mutex_lock(&__glXmutex)
#define __glXUnlock() pthread_mutex_unlock(&__glXmutex)
-#else
-#define __glXLock()
-#define __glXUnlock()
-#endif
/*
** Setup for a command. Initialize the extension for dpy if necessary.