Re: [Boost-bugs] [Boost C++ Libraries] #4773: boost::this_thread::sleep(Microsecond Resolution)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4773: boost::this_thread::sleep(Microsecond Resolution)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-18 09:52:20


#4773: boost::this_thread::sleep(Microsecond Resolution)
------------------------------------------+---------------------------------
  Reporter: dominicstreeter@… | Owner: anthonyw
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.44.0 | Severity: Optimization
Resolution: | Keywords: Timing Microsecond Millisecond Precision Resolution Economic Practice
------------------------------------------+---------------------------------

Comment (by dominicstreeter@…):

 I am afraid that this ticket is somewhat redundant. The issue was I
 believed that microsecond timing was necessary to control millisecond
 interactions precisely on standard hardware.

 The reason there is no microsecond timing despite the resolution being
 addressable now is because even windows 7 professional does not manage or
 support control of threading on a microsecond level. Its an inherent
 limitation of the way the operating system is designed. I don't imagine
 any OS designed for standard commercial use has this as a standard
 resolution because not all hardware has a high performance counter and so
 it would be bad practice to try and use such a counter for generic timing.
 I also found ways around the limitation despite being mildly less precise
 and efficient they work perfectly. The only real method available is a
 spin lock cycle.

 I apologise for the confusion! In future tickets I will also provide an
 example application to try and explain the issue.

 Thank you for your time!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4773#comment:3>
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:04 UTC