LibreOffice Module comphelper (master) 1
|
#include <osl/getglobalmutex.hxx>
#include <atomic>
#include <functional>
Go to the source code of this file.
Namespaces | |
namespace | comphelper |
Functions | |
template<typename Type , typename Function = std::function<Type*()>, typename Guard = osl::MutexGuard, typename GuardCtor = osl::GetGlobalMutex> | |
static Type * | comphelper::doubleCheckedInit (std::atomic< Type * > &pointer, Function function, GuardCtor guardCtor=osl::GetGlobalMutex()) |
Thread-safe singleton creation. More... | |