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

◆ WaitTimeout()

virtual bool drama::thread::TransEvtProcessor::WaitTimeout ( std::chrono::steady_clock::time_point *  until)
virtualinherited

This method is invoked when a timeout occurs.

This method is invoked if one of the "...WaitUntil()" methods times out.

The default implementation of this will return false. A subclass might want to override this if it is doing things that might require the timeout to change. Whilst it won't be invoked until the original timeout occurs (so you can't change to a shorter timeout), you can extend the timeout by returning true, having updated the wait until time.

Parameters
untilentry, pointer to the current timeout value. If this method returned true, then this value must be updated to the new timeout, which must be later then the current time.
Returns
True to indicate the timeout has been updated and the wait should continue. Otherwise return false which will trigger the WaitUntil operation to complete.