Provided for convenience.
More...
#include <utils/Singleton.h>
template<typename T>
class mira::LazySingletonNoLock< T >
Provided for convenience.
Same as LazySingleton but without thread safe instantiation. This is equivalent to Singleton<T, singleton::LazyInstantiation, ..., singleton::NoLock>.
◆ Type
◆ instance()
static Type& instance |
( |
| ) |
|
|
inlinestaticinherited |
Returns a reference to the singleton instance.
- Exceptions
-
XSingleton | If the singleton was already destroyed (dead reference) or not yet created (when using ExplicitInstantiation). |
◆ isDestroyed()
static bool isDestroyed |
( |
| ) |
|
|
inlinestaticinherited |
Returns true, if the singleton was already destroyed.
Trying to access it will result in an exception.
◆ makeInstance()
static Type* makeInstance |
( |
| ) |
|
|
inlinestaticprotectedinherited |
◆ destroyInstance()
static void destroyInstance |
( |
void |
| ) |
|
|
inlinestaticprotectedinherited |
The documentation for this class was generated from the following file: