Boost logo

Boost Users :

Subject: Re: [Boost-users] [config] policy for setting BOOST_HAS_THREADS?
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-11-11 11:39:37


John Maddock wrote:

> JOAQUIN M. LOPEZ MUÑOZ wrote:
>> Hello,
>>
>> What is the policy by which BOOST_HAS_THREADS gets defined
>> or not? I used to think this macro is somehow affected by the
>> selection of a single-threaded or multithreaded runtime library
>> as done in bjam with threading=single and threading=multi, but
>> some experiments in Linux suggest that this is not the case,
>> as discussed in the following thread:
>
> It's set if the compiler and it's std lib is in thread safe mode. For gcc
> it's either set or not depending upon how gcc with built (since there are no
> compiler options that actually change the thread-safeness in recent gcc
> releases: and yes I checked with the gcc and libstdc++ teams on that!).

How is this related to _REENTRANT been set or not set? Do you have the pointers
to your conversations with gcc hackers?

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net