Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

rwServiceCancellation


Global Function

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

None

Package

Threading

Declaration

#include <rw/thread/RWCancellation.h>

void rwServiceCancellation(void);

Description

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.

See Also

RWCancellation, RWRunnableSelf, rwRunnable



Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.