Boost logo

Boost Users :

Subject: Re: [Boost-users] What's wrong with this simple multithreaded function that uses regex?
From: Viatcheslav.Sysoltsev_at_[hidden]
Date: 2011-08-03 03:32:47


On Tue, 02 Aug 2011 19:07:44 +0200, Oliver Seiler <oseiler_at_[hidden]> wrote:

> I've generally found that using function-level static with multiple
> threads is a Bad Idea (including with Boost.Threads) as the object
> won't get initialized until the function is run for the "first" time,
> but this initialization isn't generally thread-safe.
Just a remark: with gcc it is thread-safe


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