libpsynth 0.2.1
Static Public Member Functions
psynth::base::lifetime_atexit< T > Struct Template Reference

Lifetime singleton policy that destroys the singleton in the atexit invocation sequence. More...

#include <singleton.hpp>

List of all members.

Static Public Member Functions

static void schedule (T *, destroy_func_t fun)
 Scheduler function.
static void on_dead_reference ()
 Error handler function.

Detailed Description

template<class T>
struct psynth::base::lifetime_atexit< T >

Lifetime singleton policy that destroys the singleton in the atexit invocation sequence.

Todo:
This is causing problems with pthreads doing cleanup on exit() too...

Member Function Documentation

template<class T >
static void psynth::base::lifetime_atexit< T >::on_dead_reference ( ) [inline, static]

Error handler function.

template<class T >
static void psynth::base::lifetime_atexit< T >::schedule ( T *  ,
destroy_func_t  fun 
) [inline, static]

Scheduler function.


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