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

◆ MonitorStart()

void drama::Path::MonitorStart ( thread::TMessHandler action,
const sds::Id argIn,
MessageEventHandler *const  eventProcessor 
)
inlineinherited

Send a Monitor Start message to a task and block until is it is complete.

This method is used by the drama::thread::Monitor class, user code should use that class to implement non-forward monitors.

Parameters
actionA pointer to the threaded action or threaded uface handler which is executing this operation.
argInArgument to the message, will contain the list of parameters to monitor. You can use "drama::sds::Id::CreateArgCmdStruct() to create this argument.
eventProcessorAn object to use to process events. Defaults to a simple event processor that causes the method to return when the monitor completes.

References drama::TransEvtInfo::complete, drama::CreateRunDramaTask(), DramaTHROW_S, and drama::TransEvtInfo::entryStatus.