Cross-Platform C++

ot
class TerminationHandler  (abstract)

#include "ot/base/TerminationHandler.h"

ot::ManagedObject 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.

Methods inherited from class ot::ManagedObject
addRef(), getRefCount(), onFinalRelease(), operator=(const ManagedObject&), release()

Method Detail

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.



Cross-Platform C++

Found a bug or missing feature? Please email us at support@elcel.com

Copyright © 2000-2005 ElCel Technology   Trademark Acknowledgements