Re: [Boost-bugs] [Boost C++ Libraries] #9708: regression: boost::condition_variable::timed_wait unexpectedly wakes up while should wait infinite

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9708: regression: boost::condition_variable::timed_wait unexpectedly wakes up while should wait infinite
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-25 07:27:18


#9708: regression: boost::condition_variable::timed_wait unexpectedly wakes up
while should wait infinite
-------------------------------+------------------------
  Reporter: nikolay@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.52.0 | Severity: Regression
Resolution: | Keywords:
-------------------------------+------------------------

Comment (by nikolay@…):

 bcv.wait_for(l, boost::chrono::duration<int, boost::ratio<1,1>>::max())
 works good.

 But the issue with timed_wait.

 I have some code like:
 {{{#!cpp
 void foo(boost::posix_time::time_duration& td)
 {
 ...
 cv.timed_wait(..., td);
 ...
 }

 void f1()
 {
 ...
 foo(boost::posix_time::time_duration(boost::posix_time::pos_infin));
 ...
 }

 void f2()
 {
 ...
 foo(boost::posix_time::minutes(2));
 ...
 }

 void f3()
 {
 ...
 foo(boost::posix_time::milliseconds(500));
 ...
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9708#comment:2>
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:15 UTC