Searched refs:instance_ (Results 1 - 1 of 1) sorted by relevance
/commonlibrary/c_utils/base/include/ | ||
H A D | singleton.h | 112 static std::shared_ptr<T> instance_; // Record the created DelayedSingleton instance. member in OHOS::DelayedSingleton 117 std::shared_ptr<T> DelayedSingleton<T>::instance_ = nullptr; member in OHOS::DelayedSingleton 125 if (instance_ == nullptr) { in GetInstance() 127 if (instance_ == nullptr) { in GetInstance() 129 instance_ = temp; in GetInstance() 133 return instance_; in GetInstance() 140 if (instance_ != nullptr) { in DestroyInstance() 141 instance_.reset(); in DestroyInstance() 142 instance_ = nullptr; in DestroyInstance() 167 static T* instance_; // Recor member in OHOS::DelayedRefSingleton 172 T* DelayedRefSingleton<T>::instance_ = nullptr; global() member in OHOS::DelayedRefSingleton 204 static T instance_; global() member in OHOS::Singleton 208 T Singleton<T>::instance_; global() member in OHOS::Singleton [all...] |
Completed in 1 milliseconds