On 15/12/14 21:45, Bernd Paysan wrote:

> Actually, the right spec is to define an absolute deadline instead
> of a relative; we should do that with ns (ANS/Forth200x failed with
> MS); maybe the name might need to change (ABSTIME-NS? DEADLINE-NS?).
> pthreads AFAIK has one absolute deadline wait,
> pthread_cond_timedwait(), but it's still useless (it can't be
> combined with poll() to wait for other OS events; the only way to
> use it as such is to have a thread which waits on the OS, and then
> sends a condition to the thread which waits on abstime - that sounds
> stupid ;-).

Can't you combine absolute deadlines and poll() by setting a timer to
signal the thread?  But I'm not at all convinced by the idea of
multiplexing several streams with poll(), in any case.

Andrew.

Reply via email to