Re: [Boost-bugs] [Boost C++ Libraries] #8006: Boost::Chrono Assertion at startup - steady_clock::now() - Windows

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8006: Boost::Chrono Assertion at startup - steady_clock::now() - Windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-07 09:42:43


#8006: Boost::Chrono Assertion at startup - steady_clock::now() - Windows
-------------------------------+----------------------
  Reporter: meckschlager@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by andreas.weis@…):

 We get this problem as well. I can reproduce everything dmitry described
 on a Windows 7 x64 installation: QueryPerformanceCounter returns FALSE
 from time to time, but GetLastError reports ERROR_SUCCESS. The argument to
 QueryPerformanceCounter is aligned properly, and from what the MSDN docs
 say the function call should not fail, but it does anyway.

 It really looks like the assert is too strict in this case. Maybe just
 retrying the call to QueryPerformanceCounter will help. As an alternative,
 I noticed that the chrono implementation shipping with the VC10 standard
 library uses the GetSystemTimeAsFileTime API instead of the high
 performance counters. Maybe those functions are more reliable?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8006#comment:16>
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