fesa-core
4.0.0
|
This class can be derived by singletons to provide thread-safe instantiation and guaranteed destruction upon normal process exit. More...
#include <SingletonBase.h>
This class can be derived 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 instatiated 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.