Re: [Boost-bugs] [Boost C++ Libraries] #8960: condition_wariable::wait_for throws exception (with Invalid argument), if system date/time < 1970

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8960: condition_wariable::wait_for throws exception (with Invalid argument), if system date/time < 1970
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-04 10:01:42


#8960: condition_wariable::wait_for throws exception (with Invalid argument), if
system date/time < 1970
-------------------------------+----------------------
  Reporter: anonymous | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by albel78@…):

 I suggest: check for negative timespec::tv_sec and throw different
 exception, than "phread_cond_timed_wait: EINVAL"

 debug of this issue may be not simple, if
 boost::condition_variable::wait_for do not called
 directly. In my case - exception throws from boost::this_thread::sleep_for
 (in child threads). And code was absolutely not ready for this surprise.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8960#comment:6>
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:13 UTC