Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5847: sp_counted_base_pt.hpp: appears to suffer a race conditions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-31 03:03:03
#5847: sp_counted_base_pt.hpp: appears to suffer a race conditions
--------------------------------------------------+-------------------------
Reporter: Jeffrey Walton <noloader@â¦> | Owner: pdimov
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.47.0 | Severity: Problem
Resolution: invalid | Keywords:
--------------------------------------------------+-------------------------
Changes (by steven_watanabe):
* status: new => closed
* resolution: => invalid
Comment:
In release, new_use_count is a local variable, so
access to it doesn't need to be protected. If it
is 0, then we're destroying the last shared_ptr.
Thus, no other thread can modify use_count.
You're comments on the other functions are not
applicable, because you've left out the
pthread_mutex_[un]lock calls.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5847#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:07 UTC