Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8730: Race condition in once_block.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-25 16:01:08
#8730: Race condition in once_block.hpp
-------------------------------+------------------------------------------
Reporter: apolukhin | Owner: andysem
Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords: call_once atomics thread log
-------------------------------+------------------------------------------
Comment (by andysem):
Which implementation are you referring to?
> First of all, once_block_flag is not thread safe.
What makes you think so? It is POD, and all its modifications in the
library are made in a thread-safe way (given that you use the multi-
threaded build of the library).
> keyword static will do bad things in C++03
I'm well aware of that, and that's the reason why once_block_flag is POD.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8730#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC