|
Boost Users : |
Subject: Re: [Boost-users] What's wrong with this simple multithreaded functionthat uses regex?
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-08-01 04:31:52
>This leads me to believe that boost::regex does not play well with MSVC
>threads, but according to the Boost site, there
>aren't any bugs related to this issue for Boost 1.45. As far as I can tell
>I'm using Boost in thread safe mode
>(BOOST_HAS_THREADS is defined). I'm probably doing something
>really dumb related to MSVC threads or related to the way I configured
>Boost, but I'm not sure what it is!
>I could switch to using Boost threads, but I would like to minimize the
>changes to the code. Thanks very much for any help~
I don't see anything obviously wrong with that. My only question, is you
say BOOST_HAS_THREADS is defined, are you defining it, or is Boost.Config
defining it (if Boost.Config *isn't* setting it, then your project settings
are wrong for multithreaded code)? Are you selecting the regex lib to link
to manually or letting the auto-linking code do it's work (for minimum
chances of bad things happening you should let the auto-linking code select
the correct binary)?
HTH, John.
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