Boost logo

Boost :

From: Boris Gubenko (Boris.Gubenko_at_[hidden])
Date: 2007-02-27 13:57:52


As John said: compiling -mt (which results in _REENTRANT and _RW_MULTI_THREAD
macros being set) is the *only* way to ensure thread safety.

See
  http://article.gmane.org/gmane.comp.lib.boost.devel/147160/

for more details.

Thanks,
  Boris

----- Original Message -----
From: "Prashant Thakre" <prashant.thakre_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, February 27, 2007 1:04 PM
Subject: [boost] [thread] Patch for boost/config/platform/hpux.hpp

> >
> Hi,
> On HP-UX for toolset *acc*(aCC 6.13) Boost.Threads fails to build without the
> hardcoded *-mt* flag in RC_1_34_0/tools/build/v2/tools/acc.jam for following
> actions:
> 1.acc.link bind NEEDLIBS
> 2.acc.link.dll bind NEEDLIBS
> 3.acc.compile.c
> 4.acc.compile.c++
>
> Below mentioned patch defines the macro "BOOST_HAS_THREADS" in
> boost/config/platform/hpux.hpp for toolset *acc* and does away with the
> necessity of having to hardcode *-mt* flag.
>
> ----------------------------------------------------------------------------
> 38a39
>> # define BOOST_HAS_THREADS
> ----------------------------------------------------------------------------
>
> regards,
> Prashant Thakre
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk