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

◆ TAction() [1/2]

drama::thread::TAction::TAction ( std::weak_ptr< Task dramaTask,
double  timeout = 0 
)
inline

Create a DRAMA action/message handler object which runs a thread when the Obey message is received.

Parameters
dramaTaskThe DRAMA Task we are part of. This is passed by pointer, but TAction is not taking ownership of the subject object, which must continue to exist until the TAction object is destroyed.
timeoutThe default timeout on the thread. If the thread does not complete in this time the action will complete anyway. (BUT WHAT HAPPENS TO THE THREAD?) Only values greater then zero are valid. If you specify an invalid value (<=0) then no timeout is implemented.