Interrupting a Runnable
A runnable can have its execution interrupted at the request of another thread. A runnable can also interrupt itself. An interrupted runnable must be released from an interrupt by another thread in order to resume execution. This operation is implemented by the following functions:
*RWWaitStatus RWRunnable::requestInterrupt(void)
*RWWaitStatus RWRunnable::requestInterrupt(unsigned long milliseconds)
*void RWRunnable::releaseInterrupt(void)
*void RWRunnableSelf::interrupt(void)
*bool RWRunnableHandle::isInterruptRequested(void) const
*bool RWRunnableSelf::serviceInterrupt(void)
Figure 12 shows the timing-sequence and state changes associated with various interrupt operations.