|
NAME
SYNTAX
DESCRIPTION
A timeout , used as a guard in a selection or repetition construct, provides an escape from a system hang state. It allows a process to abort waiting for a condition that can no longer become true, for example, an input from an empty channel. EXAMPLES
L1: do :: q?message -> &... :: timeout -> break od; L2: &...The following example uses timeout to implement a watchdog process that sends a reset message to a channel named guard each time the system comes to a standstill. active proctype watchdog() { do :: timeout -> guard!reset od } NOTES
#define timeout skip SEE ALSO
|