LibreOffice
LibreOffice 24.2 SDK C/C++ API Reference
|
Helper base class for a late-initialized (default-constructed) static variable, implementing the double-checked locking pattern correctly. More...
#include <instance.hxx>
Static Public Member Functions | |
static T & | get () |
Gets the static. More... | |
Helper base class for a late-initialized (default-constructed) static variable, implementing the double-checked locking pattern correctly.
struct MyStatic : public rtl::Static<MyType, MyStatic> {}; ... MyType & rStatic = MyStatic::get(); ...
T | variable's type |
Unique | Implementation trick to make the inner static holder unique, using the outer class (the one that derives from this base class) |
|
inlinestatic |
Gets the static.
Mutual exclusion is performed using the osl global mutex.