Re: [Boost-bugs] [Boost C++ Libraries] #1950: pthread/condition_variable::wait() unlocks associated mutex prematurely and may miss a notification

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1950: pthread/condition_variable::wait() unlocks associated mutex prematurely and may miss a notification
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-26 20:38:09


#1950: pthread/condition_variable::wait() unlocks associated mutex prematurely and
may miss a notification
-----------------------------------------------+----------------------------
  Reporter: Stas Maximov <smaximov_at_[hidden]> | Owner: anthonyw
      Type: Bugs | Status: closed
 Milestone: Boost 1.36.0 | Component: thread
   Version: Boost 1.35.0 | Severity: Showstopper
Resolution: invalid | Keywords: pthread_cond_wait condition variable pthread mutex
-----------------------------------------------+----------------------------
Changes (by anthonyw):

  * status: new => closed
  * resolution: => invalid

Comment:

 Note that the same internal mutex is locked in both notify_one and
 notify_all. It is not possible to call pthread_cond_signal or
 pthread_cond_broadcast through the boost::condition_variable_any interface
 whilst a waiting thread is in the gap you highlighted.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1950#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:49:57 UTC