Implementing readcond in IO_READ

Hi all,
Is there a sample of a trivial resource manager laying around
that implements readcond? In particular, I am interested in
how you implement the time and timeout parameters inside
io_read. Do I have to set up some thread with an alarm (timeout)
that sends a pulse (ugh!) or is there a more elegant way to do this?
Randy Hyde