Global Function
None
#include <rw/thread/RWCancellation.h> void rwServiceCancellation(void);
This function determines the calling thread's current runnable, if any, and calls RWRunnableSelf::serviceCancellation() on that runnable. If cancellation has been requested on the runnable object, then an RWCancellation exception will be thrown.
Note that this function looks up the current runnable every time it is called. If you need to service cancellation repeatedly, e.g., within a loop, it is more efficient to call the global function rwRunnable() to get an RWRunnableSelf handle for the current runnable, and then call serviceCancellation() directly on this handle instance each time.
RWCancellation, RWRunnableSelf, rwRunnable
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.