AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
Public Member Functions | List of all members
drama::RunDramaExitNotifier Class Referenceabstract

Detailed Description

Class used to arrange for notifications when the RunDrama exits.


When RunDrama() exits, no more messages are expected. Hence software may want to be notified when this happens.

Abstract. User must create a subclass of this which implements the RunDramaHasExited and JoinThreads methods. They must supply an object of the subclass to the drama::Task::NotifyOnRunDramaExit() method.
When notification is no longer required, the subclass must invoke drama::Task::CancelNotifyOnRunDramaExit() to remove it.

It must be noted that RunDramaHasExited() is invoked when the the DRAMA message loop has exited. The implementation cannot rely on DRAMA messages being processed.

#include "task.hh"

Inheritance diagram for drama::RunDramaExitNotifier:
drama::thread::KickNotifier drama::thread::TAction drama::thread::TUface drama::thread::TActionViaFunctor

Public Member Functions

virtual bool JoinThreads (std::chrono::steady_clock::time_point until)=0
 Invoked by DRAMA when the run loop exists.
 
virtual int RunDramaHasExited ()=0
 Invoked by DRAMA when the run loop exits.
 

The documentation for this class was generated from the following file: