Boost logo

Boost Users :

Subject: Re: [Boost-users] [config] policy for setting BOOST_HAS_THREADS?
From: John Maddock (john_at_[hidden])
Date: 2008-11-11 12:17:05


Vladimir Prus wrote:
>>> 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?

_REENTRANT has a somewhat checkered history, because at least historically
some gcc std lib headers would set this when they were included. As far as
gcc and libstdc++ are concerned they don't use _REENTRANT anywhere.

Replies from the gcc mailing lists attached.

HTH, John.


attached mail follows:



attached mail follows:



attached mail follows:






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