Re: [Boost-bugs] [Boost C++ Libraries] #3179: Sleep with local_time

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3179: Sleep with local_time
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-20 11:43:03


#3179: Sleep with local_time
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: thread
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: sleep time |
--------------------------+-------------------------------------------------

Comment(by viboes):

 The this_thread::sleep prototype is


 {{{
     template<typename TimeDuration>
     void sleep(TimeDuration const& rel_time);
 }}}

 The TimeDuration you can pass as parameter must be one for which
 system_time+TimeDuration is defined.

 You are right that this should be documented. BTW the interface for
 thread::sleep is

 {{{
     void thread::sleep(system_time const& abs_time);
 }}}

 Anthony, to be coherent, shouldn't you add the absolute time interface on
 the namespace this_thread?
 Waiting fro Boost.Chrono, what about adding

 {{{
 void sleep(system_time const& abs_time);
 void sleep_until(system_time const& abs_time);
 template <class TimeDuration>
 void sleep_for(TimeDuration const& rel_time);
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3179#comment:2>
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:01 UTC