Re: [Boost-bugs] [Boost C++ Libraries] #5727: race condition between ~basic_condition_variable() and notify_all()

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5727: race condition between ~basic_condition_variable() and notify_all()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-07 01:08:33


#5727: race condition between ~basic_condition_variable() and notify_all()
-------------------------------------+--------------------------------------
  Reporter: sbear.powell@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
-------------------------------------+--------------------------------------

Comment (by viboes):

 I think that Boost.Thread can not do any think here. You are sharing the
 variable notifier allocated on the stack between two thread. When the
 function foo returns, the lambda thread will continue using a destroyed
 instance.

 Note that the same issue will occur with any shared variable.
 IMO, it is up to the application to manage with this kind of errors.

 Let me know if you share my point of view.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5727#comment:5>
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:08 UTC