next up previous contents index
Next: Event Granularity Up: Usage Rules Previous: Repeating Events

Cancellable Events

 

The evIsCancelled routine is designed to make it easy to write events which might be cancelled before (or while) they run. It is common practice, for example, for a session to pass session state to a timeout event. The evIsCancelled notification can be used to synchronize the timeout event and the possible destruction of the session state. An example is given in Figure 4.

 
Figure 4: Cancellable events  



Larry Peterson
Wed Jan 10 10:40:08 MST 1996