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