Boost logo

Boost :

Subject: Re: [boost] [thread] sleep() with time_duration?
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2008-11-15 08:12:21


----- Original Message -----
From: "Howard Hinnant" <hinnant_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, November 15, 2008 12:51 AM
Subject: Re: [boost] [thread] sleep() with time_duration?

> On Nov 14, 2008, at 6:46 PM, vicente.botet wrote:

>> Yes, I know that, see my preceding post.
>
> Ah, sorry 'bout that. You caught me skimming. :-)
>
>> But we don't have yet chrono in boost.
>
> I'm probably skimming too fast again, but just in case you were too,
> Beman has this ready to go:
>
> See http://svn.boost.org/svn/boost/sandbox/chrono
 
I know also that ;-)

>> Waiting for that maybe Anthony can add this
>>
>> template <class AbsoluteTime>
>> void boost::this_thread::sleep_until(Time& abs_t);
>> template <class Duration>
>> void boost::this_thread::sleep_for(const Duration& rel_t);
>
>
> I'll leave it Anthony (of course), but these signatures look overly
> generic to me (anything will bind to them).

Please replace by
    void boost::this_thread::sleep_until(const system_time& abs_t);

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk