22#include <osl/diagnose.h>
94 "Race? Ref count of singleton >0, but instance is NULL!");
Template for implementing singleton classes.
SingletonClass & operator*() const
Allows (*rSingle).someBodyOp().
~SingletonRef()
standard dtor.
SingletonRef(SingletonRef &)=delete
SingletonRef()
standard ctor.
SingletonRef & operator=(SingletonRef const &)=default
SingletonClass * operator->() const
Allows rSingle->someBodyOp().
static std::mutex & ownStaticLock()
static sal_Int32 m_nRef
ref count, which regulate creation and removing of m_pInstance.
static SingletonClass * m_pInstance
pointer to the internal wrapped singleton.