libpsynth 0.2.1
Classes | Static Public Member Functions
psynth::base::lifetime_static_dtor< T > Struct Template Reference

Lifetime singleton policy that destroys the singleton on the static destructors invocation sequence. More...

#include <singleton.hpp>

List of all members.

Classes

struct  scheduler
 Helper object.

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_static_dtor< T >

Lifetime singleton policy that destroys the singleton on the static destructors invocation sequence.

Some C++ compilers run destructors on static objects after atexit. It could therefore be convenient to delay destruction until then.


Member Function Documentation

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

Error handler function.

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

Scheduler function.


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