Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9708: boost::condition_variable::timed_wait unexpectedly wakes up while should wait infinite
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-03 03:54:08
#9708: 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@â¦):
What is "timed_value"?
If you mean "timed_wait" then I have failed to find any notes in the
Boost.Thread documentation that this function is deprecated.
Anyway currently situation looks like following:
- there was bug in Boost.Thread in incorrect usage of Boost.DateTime
- in previous releases it was lucky that code in Boost.Thread works
- in latest releases this issue (incorrect usage of Boost.DateTime) is not
hidden and Boost.Thread code does not work as expected
- Boost.Thread users have an regression after update to the latest boost
releases
- I have suggested some changes to fix the problem in the Boost.Thread. I
know that it is not final code, but I hope it is a good start point to
Boost.Thread authors/sustainers to make an correct and complete changes
- you can fix this issue by any other changes (even with breaking
changes), for example, you can always throw something like
std::invalid_arg in case if wait_duration.is_special_value(). It is your
responsibility to chose correct fix from the view of the Boost.Thread
library
P.S. I am not familiar with git so now I have lose an ability to generate
any formal patches to Boost...
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9708#comment:10> 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