AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ Cancel()

void drama::thread::Monitor::Cancel ( )
inherited

Cancel the monitor.

Can be invoked to cancel the monitor. This method requires the DRAMA Lock, but can otherwise be executed from anywhere in the program.

Will throw an exception if the monitor is not running. Will return immediately if a cancel is already underway.

Note that canceling is done by creating a new thread. This will require the DRAMA lock to send and process the message. As a result, the cancel may not occur for some time.