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

◆ DoWaitForKick()

bool drama::thread::TAction::DoWaitForKick ( WaitEventDetails *  waitEvent,
sds::IdPtr *const  arg = nullptr 
)
inlineinherited

Wait for a kick event with the waitEvent details given.

Currently this is only used by the KickNotifier. It may end up with wider use.

Parameters
waitEventitem address returned by SetupWaitForKick.
argThe argument to the kick, if any. An address of and sds::IdPtr is supplied. If you supply a null pointer, it is ignored. Otherwise, any argument to the kick is copied into here. If there is no argument to the kick, it will refer to a null SDS item.
Returns
false if woken up by SignalWaitingEvent with a code of EntryCode::DramaAbortWaits, true otherwise (normally a kick).

References drama::CreateRunDramaTask(), and D2LOG_DRAMA2.