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

◆ WaitForTransaction()

virtual void drama::thread::TMessHandler::WaitForTransaction ( std::weak_ptr< Task theTask,
TransEvtInfo *const  eventInfo,
TransEvtProcessor *const  eventProcessor,
sds::IdPtr *const  arg = nullptr 
)
virtualinherited

Block the current thread until a message for the transaction specified to SetupWaitEvent() occurs.

The DRAMA lock must NOT be taken when you call this method. Otherwise you will get a deadlock (or an exception). This method takes the DRAMA lock itself, but releases it whilst blocked.

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.
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.