SourcePro Core
:
Threads Module User's Guide
:
PART II Concurrency Packages
:
The Threading Package
:
The Runnable Object Classes
:
Interrupting a Runnable
: Interrupting a Runnable from Another Thread
Interrupting a Runnable from Another Thread
To interrupt a runnable from another thread, you need to call the
RWRunnable
function,
requestInterrupt()
. This function increments an
interrupt count
maintained within the runnable instance and waits for the runnable to interrupt.
This site works best with JavaScript enabled