ot
class TerminationHandler (abstract)
#include "ot/base/TerminationHandler.h"
An abstract base class providing an interface for classes that need to be informed when OpenTop is about to terminate.
Applications that need to inject code into OpenTop's termination sequence may do so by creating an instance of a class which implements this interface, and registering that instance via the System::RegisterTerminationHandler() function.
During termination, the registered handlers will be invoked on a last-in, first-out (LIFO) basis.
- See also:
-
System::Terminate() , ThreadTerminationHander
- Since:
-
OpenTop 1.4
| Method Summary
|
virtual void |
terminate()=0
OpenTop's singleton System class calls this method on all registered TerminationHandlers during system termination. |
terminate
virtual void terminate()=0
-
OpenTop's singleton System class calls this method on all registered TerminationHandlers during system termination.
Applications may perform resource clean-up functions within a termination handler, but should avoid performing any long-running tasks.
Found a bug or missing feature? Please email us at support@elcel.com