Subject: [Boost-bugs] [Boost C++ Libraries] #11562: Timer (using steady_clock) expires after computer time is set forward on Ubuntu 64-bit
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-20 09:59:27
#11562: Timer (using steady_clock) expires after computer time is set forward on
Ubuntu 64-bit
----------------------------------------+---------------------
Reporter: boriss@⦠| Owner: viboes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: chrono
Version: Boost 1.59.0 | Severity: Problem
Keywords: steady_clock, Linux 64-bit |
----------------------------------------+---------------------
We are using boost:chrono for the Timer implementation. Below is our
implementation:
{{{
boost::chrono::time_point<boost::chrono::steady_clock>
untilTime(boost::chrono::steady_clock::now() +
boost::chrono::milliseconds(dueTime));
boost::condition_variable m_condition;
(void)m_condition.wait_until(guard, untilTime);
}}}
After computer time on Ubuntu Linux 64-bit (tested with 12.04 and 15.04)
is set forward for the time bigger then timer interval, timer expires
immediately.
We have reproduced the problem with different boost versions 1.51,
1.54,1.55,1.57,1.59
On Ubuntu Linux 32-bit (versions 12.04, 13.04) and Windows 7 (32-bit and
64-bit) problem cannot be reproduced.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11562> 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:18 UTC