Re: [Boost-bugs] [Boost C++ Libraries] #8730: Race condition in once_block.hpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8730: Race condition in once_block.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-30 13:29:26


#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):

 (In [84918]) Refs #8730. The once_flag doesn't have initializer now when
 defined by the BOOST_LOG_ONCE_BLOCK macro. This is done in order to
 guarantee it is initialized at static initialization stage even on
 (theoretical) compilers that would not do so if the initializer is
 present. The BOOST_LOG_ONCE_BLOCK_FLAG macro has been fixed so that it
 actually uses the flag variable specified in its argument. The flag itself
 is now a single byte internally in order to minimize the chance of reading
 an inaccurate value at the fast path. The test robustness improved.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8730#comment:11>
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