fesa-core  5.0.1
SingletonBase< T > Class Template Reference

This class can be inherited by singletons to provide thread-safe instantiation and guaranteed destruction upon normal process exit. More...

#include <SingletonBase.h>

Inheritance diagram for SingletonBase< T >:
fesa::MsgQueueFactory

Detailed Description

template<class T>
class SingletonBase< T >

This class can be inherited by singletons to provide thread-safe instantiation and guaranteed destruction upon normal process exit.

When a singleton inherits from this class, it will be lazily instantiated in a thread-safe manner. Since the singleton is instantiated as a static function variable, its destructor will be called when the process is terminated and static variables are destroyed.


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