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

◆ ThreadWaitAbort()

virtual void drama::MessageEventHandler::ThreadWaitAbort ( thread::ProcessInfo  messInfo,
StatusType  status 
)
virtualinherited

Invoked if the thread wait is aborted.

This will be invoked if, whilst waiting for a message, the main DRAMA loop exits (task exiting), or the action thread completed (we must be running in a subsidiary thread) or of the user has invoked drama::Thread::TAction::AbortMessageWaits.

The default behavior is to throw an appropriate exception.

Note
When invoked, the DRAMA Lock is taken and the DRAMA context is that of the action (or UFACE context) the thread was running in. Since the lock is taken, don't do anything which waits.
Parameters
messInfoDetails on the message sent
statusThe DRAMA status associated with the abort.