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

◆ SetReturnArg() [1/2]

void drama::thread::TAction::SetReturnArg ( const sds::Id arg,
bool  copy = true 
)
inlineinherited

Set the argument to be sent as part of the action completion message.

Parameters
argThe SDS ID of the structure to be sent with the completion message.
copyIf true, then the SDS structure is copied. If false, then no copy is made, but the user must ensure underlying SDS ID is NOT deleted until after the action has completed (For example, it is not deleted until the next DRAMA message is processed. This is more efficient for large messages but imposes management overheads on user code.
Examples
threadbasic.cpp.

References drama::sds::Id::Copy(), drama::CreateRunDramaTask(), and drama::sds::Id::ShallowCopy().