Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1268: xtime_cmp changes to deal with overflow were reverted
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-14 19:43:22
#1268: xtime_cmp changes to deal with overflow were reverted
-------------------------------+--------------------------------------------
Reporter: oseiler_at_[hidden] | Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by oseiler_at_[hidden]):
Sorry about formatting; should have previewed. Here's the code fragment:
{{{
boost::xtime xt;
boost::xtime_get( &xt, boost::TIME_UTC );
xt.sec += std::numeric_limits<uint32_t>::max(); // ignore potential
overflow, as sec is 64-bit
condition.timed_wait( lock, xt ); // <- this returns immediately
}}}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1268#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:56 UTC