On Wed, 11 Oct 2006 11:51:10 -0200, Johan Nilsson
"Darryl Green"
wrote in message news:F8DFD2A4C14B454E9DC35640BC72076A9500DF@BRISBANEMAIL1.brisbane.tabq.com... Actually - I just tried to rtfm to find the relevant part, and it is less than obvious given the rather terse description of xtime as a time or >a duration. I don't think anything in boost.threads uses xtime as a duration (any more - since about 2001)?
I've been using Boost.Thread since 1.27 (IIRC) and never wanted to suspend a thread until a specific clock time. I've always had to go through the hassle of getting the current time, adding the brief time I wanted the thread to sleep (watch out for wraps in the xtime members!) and then call thread::sleep.
Out of curiosity, who actually prefers using clock times for thread::sleep()? IIRC the implementation still converts the UTC time into a relative time before entering sleep, so it's only misleading to have an absolute time as parameter to sleep.
FWIW, I agree with you. Bruno