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

◆ PutObeyHandler() [1/2]

virtual void drama::MessageHandler::PutObeyHandler ( MessageHandlerPtr  obj)
inlinevirtualinherited

Put a message handler object for the next Obey reschedule event.

Will be reset to the default handler when the action completes.

Note
Only valid if invoked in the contact of MessageReceived() being invoked for an Obey or Kick message.
Parameters
objThe object which will handle the reschedule event. The MessageReceived method of this object will be invoked. Passed by std::shrared_ptr. The object must be a sub-class of drama::MessageHandler.

Reimplemented in drama::thread::TAction.

References drama::CreateRunDramaTask(), and DramaTHROW.