The cancelEvents method
cancels all the queued events for the reactive object. This method
is called upon destruction of the reactive object to prevent the thread
from sending additional events to a destroyed object.
Signaturevoid cancelEvents();
Notes- If there are several events in the event queue
targeted for an OMReactive instance, but the instance
has already been destroyed because it reached a termination connector
in the statechart, the framework uses the cancelEvents method
to cancel the events.
- cancelEvents calls
the OMThread::cancelEvents method.