Boost logo

Boost Users :

Subject: Re: [Boost-users] What's wrong with this simple multithreaded function that uses regex?
From: Oliver Seiler (oseiler_at_[hidden])
Date: 2011-08-05 12:17:03


They lie :)

Seriously though, have hit this problem at various times, definitely
with more recent versions of gcc than 4.0.4 on Linux x86 32-bit and
64-bit; suppose I might need to chase this one down more thoroughly at
some point.

On Thu, Aug 4, 2011 at 2:39 AM, <Viatcheslav.Sysoltsev_at_[hidden]> wrote:
> On Thu, 04 Aug 2011 01:55:07 +0200, Oliver Seiler <oseiler_at_[hidden]> wrote:
>
>> I'm guessing that is dependent on the version of gcc; I've hit this
>> problem with gcc on Linux, on various versions up to and including gcc
>> 4.1.something. Do you know when specifically this was fixed in gcc?
>>
>
> Its a gcc feature, not something to be fixed ;)
> I found in http://gcc.gnu.org/gcc-4.0/changes.html, which describes new
> changes for gcc 4.0.4:
> "The compiler now uses the library interface specified by the C++ ABI for
> thread-safe initialization of function-scope static variables."
> Apparently the support is already in 4.0.4, earlier it might be there as
> well, but maybe in some unsatisfying way.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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