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

◆ GetParamWaitUntil() [1/2]

bool drama::Path::GetParamWaitUntil ( std::chrono::steady_clock::time_point  until,
thread::TMessHandler action,
const std::initializer_list< std::string >  names,
sds::IdPtr *const  argOut,
MessageEventHandler *const  eventProcessor = &_simpleEventProcessor 
)
inlineinherited

Sends a get parameter message to a task and blocks the current thread until it completes.

Multiple parameter version with timeout.

For a relative time, something like the following is needed. (ten second timeout).

   std::chrono::steady_clock::time_point until =  
      std::chrono::steady_clock::now() + std::chrono::seconds(10);
      GetParamWaitUntil(until,...);
*

but can be done using the DeltaTimeToTimePoint() static method.

Parameters
untilUntil when should we wait for this.
actionA pointer to the threaded action or threaded uface handler which is executing this operation.
namesAn initializer list of the name of the parameters to get.
argOutThe value of the parameters is copied here.
eventProcessorAn object to use to process events. Defaults to a simple event processor that causes the method to return when the set completes.
Returns
Returns true if the transaction completed, false for a timeout.

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