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

◆ HasTaskExpired()

bool drama::thread::TAction::HasTaskExpired ( ) const
inlinenoexceptinherited

Indicate if the underlying DRAMA task weak pointer has expired.

Since we are working in thread, it is possible for the weak pointer that refers to the DRAMA task has expired. This allows it to be checked before calling GetTask(). If the weak pointer has expired, then the GetTask() would throw