tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc-4.8/c++ threads, please



On Sun, Apr 27, 2014 at 11:25:38AM +0200, Martin Husemann wrote:
> On Sun, Apr 27, 2014 at 10:57:26AM +0200, Thomas Klausner wrote:
> > Looking at /usr/include/g++/bits/x86_64/c++config.h, lots of threading
> > stuff is disabled:
> 
> Does the pkgsrc/lang/gcc48-cc++ configure gthreads support?

Looking at work/build/prev-x86_64--netbsd/libstdc++-v3/config.h it
only looks slightly better.

/* Define to 1 if the target assembler supports thread-local storage. */
/* #undef HAVE_CC_TLS */
/* Define to 1 if the target supports thread-local storage. */
#define HAVE_TLS 1
/* Define to 1 if you have the `__cxa_thread_atexit_impl' function. */
/* #undef HAVE___CXA_THREAD_ATEXIT_IMPL */
/* Define if gthreads library is available. */
#define _GLIBCXX_HAS_GTHREADS 1
/* Define if pthreads_num_processors_np is available in <pthread.h>. */
/* #undef _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP */
/* Define to 1 if mutex_timedlock is available. */
#define _GTHREAD_USE_MUTEX_TIMEDLOCK 0

For comparison, here's /usr/include/g++/bits/x86_64/c++config.h again:

/* Define to 1 if the target assembler supports thread-local storage. */
/* #undef _GLIBCXX_HAVE_CC_TLS */
/* Define to 1 if the target supports thread-local storage. */
/* #undef _GLIBCXX_HAVE_TLS */
/* Define to 1 if you have the `__cxa_thread_atexit_impl' function. */
/* #undef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL */
/* Define if gthreads library is available. */
/* #undef _GLIBCXX_HAS_GTHREADS */
/* Define if pthreads_num_processors_np is available in <pthread.h>. */
/* #undef _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP */
/* Define to 1 if mutex_timedlock is available. */
#define _GTHREAD_USE_MUTEX_TIMEDLOCK 0

 Thomas


Home | Main Index | Thread Index | Old Index