Boost logo

Boost Users :

Subject: Re: [Boost-users] regex icu library (thread safety)
From: John Maddock (john_at_[hidden])
Date: 2013-07-24 04:11:39


>The build process is successful and I can find the library in
>"/opt/third_party_libraries/boost_1_46_1/lib/libboost_regex.so.1.46.1".
>
>The question is: does this library support multiple threads? I did some
>research on this topic, it seems like even though the name
>does not contain "mt", it is actually thread safe. Or do I have to pass
>extra parameter to generate thread safe version?

Yes it's thread safe as long as GCC and libstdc++ are (which they should be
on your platform). At some point Boost.Build reduced the number of build
variants on Linux so we basically only build thread safe release versions.

HTH, John.

PS You can always check this in your code with a:

#include <boost/config.hpp>

#ifndef BOOST_HAS_THREADS
#error "Ooops"
#endif


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