EMANE
1.2.1
|
Ensure a class only has one instance, and provide a global point of access to it. More...
#include <singleton.h>
Static Public Member Functions | |
static T * | instance () |
static void | destroy () |
Ensure a class only has one instance, and provide a global point of access to it.
Definition at line 47 of file singleton.h.
|
inlinestatic |
Destroys the single instance of type T. Once destroyed it cannot be used or recreated. This is not a thread-safe method.
Definition at line 67 of file singleton.h.
|
inlinestatic |
Provides thread-safe access to a single instance of type T. It does not provide thread-safety for T methods.
Definition at line 56 of file singleton.h.