|
Boost Users : |
From: Leon Mergen (leon_at_[hidden])
Date: 2005-01-27 06:16:18
On Thu, Jan 27, 2005 at 10:53:31AM -0000, John Maddock wrote:
> Regex is thread safe in following sense: given a const regex object, you
> can safely share that object between multiple threads.
>
> However, your backtrace indicates that the problem occurs during regex
> construction: this is a situation *you* have to deal with (no matter what
> the data type), the thread safety guarantees only kick in once the object
> has been constructed, it's up to you to ensure that no race condition
> occurs during the construction. Your second link above indicates a couple
> of methods you could use to achieve this.
Hello John,
You indeed are correct, and I also came to the conclusion this is
something serious I didn't take into account at all; it is not at all
boost-related and I apologise for posting these off-topic questions at
this mailinglist.
Thanks for your replies,
Leon Mergen
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