summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-06-09 16:47:44 +0200
committerIvan Maidanski <ivmai@mail.ru>2013-06-09 16:47:44 +0200
commit77f4e5fb482b20342f3e766412926460a5514629 (patch)
treeb2ecd1d2eef1bbf5759b0e9783e1def51949b35b
parent55b6a0870003cc72864a7168311605c71bd874c8 (diff)
Use pthread API to operate thread-local data on Linux if no compiler TLS
* include/private/thread_local_alloc.h (USE_PTHREAD_SPECIFIC): Define for GC_LINUX_THREADS (instead of default USE_CUSTOM_SPECIFIC) if compiler TLS is unavailable (e.g., for linux/arm).
-rw-r--r--include/private/thread_local_alloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/thread_local_alloc.h b/include/private/thread_local_alloc.h
index ce089ed..b454c8e 100644
--- a/include/private/thread_local_alloc.h
+++ b/include/private/thread_local_alloc.h
@@ -49,7 +49,7 @@
# elif defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) \
|| defined(GC_AIX_THREADS) || defined(GC_DARWIN_THREADS) \
|| defined(GC_FREEBSD_THREADS) || defined(GC_NETBSD_THREADS) \
- || defined(GC_RTEMS_PTHREADS)
+ || defined(GC_LINUX_THREADS) || defined(GC_RTEMS_PTHREADS)
# define USE_PTHREAD_SPECIFIC
# elif defined(GC_HPUX_THREADS)
# ifdef __GNUC__