
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