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

◆ Send()

void drama::ThreadDispatcher::Send ( drama::thread::TMessHandler messHandler,
drama::Path path,
sds::IdPtr  arg = nullptr 
)

Send a message using a new thread.

Creates async thread and uses it to send the message by invoking the "SendMessage" method.

Warning
Only invoke this if IsRunning() has returned false. If thread is still running, this will throw a drama::Exception with a status code of DRAMA2__DISPATCHER_THREAD_RUNNING. Normally you would also have invoked CheckResult() to handle the result of a previous thread.
Parameters
messHandlerAddress of a DRAMA Threaded message handler. Will be a sub-class of drama::TAction (invoked by a threaded action) or TUface (invoked by a uface thread)
pathAddress of the path to send the message along.
argArgument to be supplied to the message.