diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2013-06-09 18:47:44 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-06-09 18:47:44 +0400 |
commit | 77f4e5fb482b20342f3e766412926460a5514629 (patch) | |
tree | b2ecd1d2eef1bbf5759b0e9783e1def51949b35b | |
parent | 55b6a0870003cc72864a7168311605c71bd874c8 (diff) | |
download | bdwgc-77f4e5fb482b20342f3e766412926460a5514629.tar.gz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/thread_local_alloc.h b/include/private/thread_local_alloc.h index ce089edf..b454c8eb 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__ |