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

◆ Run() [1/2]

template<typename EventProcType = MonitorMessageHandler>
void drama::thread::Monitor::Run ( Path thePath,
thread::TMessHandler action 
)
inlineinherited

Run a monitor operation - handler by type.

This method will send a DRAMA "MONITOR START" message to the task, the path to which is supplied. The parameters being monitored would have been specified in constructor.

The thread will block until the monitor completes.

Parameters
thePathThe path to the task we wish to monitor.
actionA pointer to the threaded action (or uface handler) which is executing this operation.
Template Parameters
eventProcessorThe type of the object to be used to process events. Must be a sub-class of MonitorMessageHandler. One of these will be constructed with "this" passed to the constructor.

References drama::CreateRunDramaTask(), and drama::thread::Monitor::Run().

Referenced by drama::thread::Monitor::Run().