summaryrefslogtreecommitdiff
path: root/glx/glthread.h
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-03-22 19:01:48 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-03-23 09:11:33 -0700
commitc55baebf4ebf1887262cc16899eb297b9f284f6e (patch)
treed9349a14c71f893d8d08c0724a79fa7c6223efd3 /glx/glthread.h
parent03f45df93469f6aef391e97007b9614e0770cc4c (diff)
GLX: Support TLS with better portability
AX_TLS detects when toolchains support __thread or __declspec(thread), but existing code assumed __thread. This also adds a check to configure.ac to error out if TLS is requested but unsupported. Found-by: Tinderbox http://tinderbox.x.org/builds/2011-03-22-0007 Regression-from: 82b1eaa6cad20f39dbf15573bdb3d62acbcd91f9 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Tom Fogal <tfogal@alumni.unh.edu> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'glx/glthread.h')
-rw-r--r--glx/glthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glthread.h b/glx/glthread.h
index 28793fcc7..140e2aa8e 100644
--- a/glx/glthread.h
+++ b/glx/glthread.h
@@ -233,7 +233,7 @@ _glthread_SetTSD(_glthread_TSD *, void *);
#if defined(GLX_USE_TLS)
-extern __thread struct _glapi_table * _glapi_tls_Dispatch
+extern TLS struct _glapi_table * _glapi_tls_Dispatch
__attribute__((tls_model("initial-exec")));
#define GET_DISPATCH() _glapi_tls_Dispatch