Boost logo

Boost Users :

From: Kim Barrett (kab_at_[hidden])
Date: 2006-08-24 13:36:37


At 5:15 PM -0700 8/23/06, Rush Manbert wrote:
>Rene Rivera wrote:
>> Rush Manbert wrote:
>>
>>>Why are there no thread safe libraries built for the Darwin toolset?
>>
>>
>> Unfortunately... I have no clue why you don't get the multi-thread libs.
>> They did get generated, and tested, for the release. For example the
>> thread libs
>>
>><http://engineering.meta-comm.com/boost-regression/1_33_1/developer/thread_release.html>.
>>
>
>Thanks for the reply. I have poked around a little bit more. By placing
>#warnings in config/compiler/gcc.hpp and in config/suffix.hpp (which
>appears to be the only place that BOOST_HAS_THREADS is undefined) I know
>that if I run the default bjam with the Darwin toolset, then
>BOOST_HAS_THREADS is defined for every file that is compiled. Does this
>mean that all of the multi-threading support is enabled in every
>library? If so, then something still seems wrong, but at least I am
>building multi-thread libraries.

I haven't used MacOSX extensively for development, but it appears that it
*only* supports multi-threaded compilation. For example, the version of
gcc that Apple provides doesn't accept the -pthread option; it's always
turned on and I don't know of a way to turn it off if one wanted to. It
isn't clear whether you are using bare darwin, or darwin on MacOSX, and
I don't know if that distinction actually matters for this.


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