Currently, SLEEP does not take deadlines into account. For the purposes
I use deadlines for, I'd like to change that.
Trying to implement it, I came up with a question regarding how it
should behave. Example:
(with-deadline (:seconds 0.2)
SLEEP is modified to sleep for 0.2 seconds first, signal the deadline; a
deadline handler is executed, the handler defers the deadlines.
Now, how long should SLEEP continue to sleep now? 0.8 seconds,
or 0.8s - elapsed time?
In the later case, we'd have to change SLEEP internally to use absolute
rather than relative times. At the moment SLEEP uses `nanosleep'; I read
that for the absolute time behaviour one would have to use
`clock_nanosleep'. Both are due to POSIX.1-2001 according to my
Still I wanted to ask if anyone knows portability problems of
`clock_nanosleep' (and `clock_gettime' which must be used in