next up previous contents index
Next: event.signal! event value procedure Up: Multithreading Previous: make-event procedure

make-timeout-event duration procedure

 

Create an event. The event will become signalled in approximately duration clock ticks from the event creation time. Duration should be an exact integer.

Note: timeout events may be shared by several threads and remain in the system until the timeout occurs. If you want loop until a certain distant time waiting for messages, create the timeout event outside the loop rather than for each iteration, otherwise all the (essentially equivalent) timeout events might fill the Scheme heap and clog up the simulator.



Erik Rauch
Sat May 8 16:42:57 EDT 1999