Check out the new USENIX Web site. next up previous
Next: Event Handler Up: Events Previous: Events

Event Generator

The following predicate sets a timer.
\begin{smalltab}
{\bf set-alarm}({\em TimerName}({\em FireTime})).
 \end{smalltab}

After a timer is set up, it fires only once and posts an event with the same name as the timer. If it is to be fired repeatedly, it must be reset each time. A timer event is always asynchronous. The firing time of a timer can be a relative time, i.e, some period from now, or an absolute time set on a particular time or date.

The following predicate posts a user-defined event either synchronously or asynchronously.
\begin{smalltab}
{\bf post-event}$^{sync \vert async}$
 ({\em EvtName}($T_{1}, ..., T_{n}$)).
 \end{smalltab}


Du Li
8/25/1999