summaryrefslogtreecommitdiffstats
path: root/src/glx/glxcurrent.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-03-05 23:06:42 +0000
committerEmil Velikov <[email protected]>2015-03-06 16:46:18 +0000
commit38591295cd4b68f89f257b20f476f98de3772a47 (patch)
treee4e0ddee3adbc931576ae2394a33ddb9eb2e378d /src/glx/glxcurrent.c
parent8b15a883e0ba72c9156d7192a798bb272e0bc528 (diff)
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 <[email protected]>
Diffstat (limited to 'src/glx/glxcurrent.c')
-rw-r--r--src/glx/glxcurrent.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c
index 86fb658ca5e..7f47a427771 100644
--- a/src/glx/glxcurrent.c
+++ b/src/glx/glxcurrent.c
@@ -33,9 +33,7 @@
* Client-side GLX interface for current context management.
*/
-#ifdef HAVE_PTHREAD
#include <pthread.h>
-#endif
#include "glxclient.h"
@@ -67,8 +65,6 @@ struct glx_context dummyContext = {
* Current context management and locking
*/
-#if defined( HAVE_PTHREAD )
-
_X_HIDDEN pthread_mutex_t __glXmutex = PTHREAD_MUTEX_INITIALIZER;
# if defined( GLX_USE_TLS )
@@ -138,13 +134,6 @@ __glXGetCurrentContext(void)
# endif /* defined( GLX_USE_TLS ) */
-#else
-
-/* not thread safe */
-_X_HIDDEN struct glx_context *__glXcurrentContext = &dummyContext;
-
-#endif
-
_X_HIDDEN void
__glXSetCurrentContextNull(void)