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

◆ WaitForTransactionUntil()

virtual bool drama::thread::TMessHandler::WaitForTransactionUntil ( std::weak_ptr< Task theTask,
TransEvtInfo *const  eventInfo,
TransEvtProcessor *const  eventProcessor,
const std::chrono::steady_clock::time_point &  until,
sds::IdPtr *const  arg = nullptr 
)
virtualinherited

Block the current thread until a message for the transaction specified to SetupWaitEvent() occurs or until a certain time has passed.

Parameters
theTaskThe DRAMA task we are part of.
eventInfoTransaction event information return there.
eventProcessorThe Process() method of this object is invoked to process any message, returning true if we are to continue waiting for messages.
untilUntil when should we wait for this.
argThe output argument from the transaction, if any.
An address of and sds::IdPtr is supplied.
If you supply a null pointer, it is ignored. Otherwise, any argument to the transaction event is copied into here. If there is no argument to the transaction it will refer to a null SDS item.
Returns
Returns true if the transaction completed, false for a timeout.