G::Cleanup Class Reference

An interface for registering cleanup functions which are called when the process terminates abnormally. More...

#include <gcleanup.h>

List of all members.

Static Public Member Functions

static void init ()
 An optional early-initialisation function.
static void add (void(*fn)(SignalSafe, const char *), const char *arg)
 Adds the given handler to the list which are to be called when the process terminates abnormally.


Detailed Description

An interface for registering cleanup functions which are called when the process terminates abnormally.

Definition at line 39 of file gcleanup.h.


Member Function Documentation

void G::Cleanup::init (  )  [static]

An optional early-initialisation function.

May be called more than once.

Definition at line 73 of file gcleanup_unix.cpp.

References G::CleanupImp::ignore().

Referenced by GNet::Socket::prepare().

void G::Cleanup::add ( void(*)(SignalSafe, const char *)  fn,
const char *  arg 
) [static]

Adds the given handler to the list which are to be called when the process terminates abnormally.

The handler function must be fully reentrant. The 'arg' pointer is kept.

Definition at line 78 of file gcleanup_unix.cpp.

References G::CleanupImp::add().


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

Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5