#include <Singleton.h>
Inheritance diagram for Singleton:
Static Public Methods | |
T * | instance () |
This is a thread safe wrapper for creating Singleton classes. The syncronization method and instantiation methods can be changed easily by specifying different policy implementations as the templates parameters.
// Most common Singleton Singletion<LonesomeType> // Singleton that uses static storage Singletion<LonesomeType, StaticInstantiation> // Single-threaded singleton that uses static storage (Meyers-like) Singletion<LonesomeType, LocalStaticInstantiation, NotLocked>
|
Provide access to the single instance through double-checked locking
|