/third_party/flutter/engine/flutter/fml/platform/darwin/ |
D | cf_utils.h | 17 CFRef() : instance_(nullptr) {} in CFRef() 19 CFRef(T instance) : instance_(instance) {} in CFRef() 22 if (instance_ != nullptr) { in ~CFRef() 23 CFRelease(instance_); in ~CFRef() 25 instance_ = nullptr; in ~CFRef() 29 if (instance_ == instance) { in Reset() 32 if (instance_ != nullptr) { in Reset() 33 CFRelease(instance_); in Reset() 36 instance_ = instance; in Reset() 39 operator T() const { return instance_; } in T() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/binder/ |
D | binder_manager.cpp | 22 BinderManager *BinderManager::instance_ = NULL; member in wpa_supplicant_binder::BinderManager 26 if (!instance_) in getInstance() 27 instance_ = new BinderManager(); in getInstance() 28 return instance_; in getInstance() 33 if (instance_) in destroyInstance() 34 delete instance_; in destroyInstance() 35 instance_ = NULL; in destroyInstance()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/binder/ |
D | binder_manager.cpp | 22 BinderManager *BinderManager::instance_ = NULL; member in wpa_supplicant_binder::BinderManager 26 if (!instance_) in getInstance() 27 instance_ = new BinderManager(); in getInstance() 28 return instance_; in getInstance() 33 if (instance_) in destroyInstance() 34 delete instance_; in destroyInstance() 35 instance_ = NULL; in destroyInstance()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/ |
D | services.h | 40 instance_.reset(new Services()); in CreateInstance() 41 return (instance_->CreateAllInstances()); in CreateInstance() 44 if (instance_ == nullptr) { in CreateInstance() 45 instance_.reset(new Services()); in CreateInstance() 46 return (instance_->CreateAllInstances()); in CreateInstance() 53 if (instance_ == nullptr) { in GetInstance() 58 return *instance_; in GetInstance() 102 static std::unique_ptr<Services> instance_; variable
|
/third_party/grpc/src/core/ext/filters/client_channel/ |
D | global_subchannel_pool.cc | 41 instance_ = new RefCountedPtr<GlobalSubchannelPool>( in Init() 47 GPR_ASSERT(instance_ != nullptr); in Shutdown() 49 GPR_ASSERT(*instance_ != nullptr); in Shutdown() 50 instance_->reset(); in Shutdown() 51 delete instance_; in Shutdown() 55 GPR_ASSERT(instance_ != nullptr); in instance() 56 GPR_ASSERT(*instance_ != nullptr); in instance() 57 return *instance_; in instance() 161 RefCountedPtr<GlobalSubchannelPool>* GlobalSubchannelPool::instance_ = nullptr; member in grpc_core::GlobalSubchannelPool
|
/third_party/boost/boost/asio/detail/ |
D | null_global.hpp | 40 static null_global_impl instance_; member 45 null_global_impl<T> null_global_impl<T>::instance_; member in boost::asio::detail::null_global_impl<T> 50 if (null_global_impl<T>::instance_.ptr_ == 0) in null_global() 51 null_global_impl<T>::instance_.ptr_ = new T; in null_global() 52 return *null_global_impl<T>::instance_.ptr_; in null_global()
|
D | posix_global.hpp | 37 instance_.static_ptr_ = instance_.ptr_ = new T; in do_init() 48 static posix_global_impl instance_; member 59 posix_global_impl<T> posix_global_impl<T>::instance_; member in boost::asio::detail::posix_global_impl<T> 71 return *posix_global_impl<T>::instance_.ptr_; in posix_global()
|
D | win_global.hpp | 37 static win_global_impl instance_; member 44 win_global_impl<T> win_global_impl<T>::instance_ = { 0 }; member in boost::asio::detail::win_global_impl<T> 59 if (win_global_impl<T>::instance_.ptr_ == 0) in win_global() 60 win_global_impl<T>::instance_.ptr_ = new T; in win_global() 61 win_global_impl<T>::tss_ptr_ = win_global_impl<T>::instance_.ptr_; in win_global()
|
D | std_global.hpp | 37 instance_.ptr_ = new T; in do_init() 47 static std_global_impl instance_; member 55 std_global_impl<T> std_global_impl<T>::instance_; member in boost::asio::detail::std_global_impl<T> 61 return *std_global_impl<T>::instance_.ptr_; in std_global()
|
/third_party/boost/libs/asio/include/boost/asio/detail/ |
D | null_global.hpp | 40 static null_global_impl instance_; member 45 null_global_impl<T> null_global_impl<T>::instance_; member in boost::asio::detail::null_global_impl<T> 50 if (null_global_impl<T>::instance_.ptr_ == 0) in null_global() 51 null_global_impl<T>::instance_.ptr_ = new T; in null_global() 52 return *null_global_impl<T>::instance_.ptr_; in null_global()
|
D | posix_global.hpp | 37 instance_.static_ptr_ = instance_.ptr_ = new T; in do_init() 48 static posix_global_impl instance_; member 59 posix_global_impl<T> posix_global_impl<T>::instance_; member in boost::asio::detail::posix_global_impl<T> 71 return *posix_global_impl<T>::instance_.ptr_; in posix_global()
|
D | win_global.hpp | 37 static win_global_impl instance_; member 44 win_global_impl<T> win_global_impl<T>::instance_ = { 0 }; member in boost::asio::detail::win_global_impl<T> 59 if (win_global_impl<T>::instance_.ptr_ == 0) in win_global() 60 win_global_impl<T>::instance_.ptr_ = new T; in win_global() 61 win_global_impl<T>::tss_ptr_ = win_global_impl<T>::instance_.ptr_; in win_global()
|
D | std_global.hpp | 37 instance_.ptr_ = new T; in do_init() 47 static std_global_impl instance_; member 55 std_global_impl<T> std_global_impl<T>::instance_; member in boost::asio::detail::std_global_impl<T> 61 return *std_global_impl<T>::instance_.ptr_; in std_global()
|
/third_party/mindspore/mindspore/ccsrc/utils/mpi/ |
D | mpi_config.cc | 20 std::shared_ptr<MpiConfig> MpiConfig::instance_ = nullptr; member in mindspore::MpiConfig 23 if (instance_ == nullptr) { in GetInstance() 25 instance_.reset(new (std::nothrow) MpiConfig()); in GetInstance() 27 return instance_; in GetInstance()
|
/third_party/libphonenumber/cpp/src/phonenumbers/base/memory/ |
D | singleton_posix.h | 34 return instance_; in GetInstance() 39 instance_ = new T(); in Init() 42 static T* instance_; // Leaky singleton. variable 46 template <class T> T* Singleton<T>::instance_;
|
D | singleton_boost.h | 33 return instance_.get(); in GetInstance() 38 instance_.reset(new T()); in Init() 41 static boost::scoped_ptr<T> instance_; variable 45 template <class T> boost::scoped_ptr<T> Singleton<T>::instance_;
|
D | singleton_stdmutex.h | 40 return instance_; in GetInstance() 47 instance_ = new T(); in Init() 50 static T* instance_; // Leaky singleton. variable 55 template <class T> T* Singleton<T>::instance_;
|
D | singleton_win32.h | 41 return instance_; in GetInstance() 48 instance_ = new T(); in Init() 51 static T* instance_; // Leaky singleton. variable 62 template <class T> T* Singleton<T>::instance_;
|
/third_party/flutter/engine/flutter/vulkan/ |
D | vulkan_application.cc | 104 instance_ = {instance, [this](VkInstance i) { in VulkanApplication() 110 auto debug_report = std::make_unique<VulkanDebugReport>(vk, instance_); in VulkanApplication() 134 return instance_; in GetInstance() 138 instance_.ReleaseOwnership(); in ReleaseInstanceOwnership() 147 if (VK_CALL_LOG_ERROR(vk.EnumeratePhysicalDevices(instance_, &device_count, in GetPhysicalDevices() 164 instance_, &device_count, physical_devices.data())) != VK_SUCCESS) { in GetPhysicalDevices()
|
/third_party/boost/boost/asio/ssl/detail/ |
D | openssl_init.hpp | 65 openssl_init* tmp = &instance_; in openssl_init() 82 static openssl_init instance_; member in boost::asio::ssl::detail::openssl_init 90 openssl_init<Do_Init> openssl_init<Do_Init>::instance_; member in boost::asio::ssl::detail::openssl_init<Do_Init>
|
/third_party/boost/libs/asio/include/boost/asio/ssl/detail/ |
D | openssl_init.hpp | 65 openssl_init* tmp = &instance_; in openssl_init() 82 static openssl_init instance_; member in boost::asio::ssl::detail::openssl_init 90 openssl_init<Do_Init> openssl_init<Do_Init>::instance_; member in boost::asio::ssl::detail::openssl_init<Do_Init>
|
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
D | GPU.cpp | 61 instance_.EnableBackendValidation(true); in GPU() 62 instance_.SetBackendValidationLevel(dawn_native::BackendValidationLevel::Full); in GPU() 68 instance_.DiscoverDefaultAdapters(); in GPU() 83 auto adapters = instance_.GetAdapters(); in requestAdapter()
|
/third_party/googletest/googletest/src/hwext/ |
D | gtest-filter.cc | 18 static TestFilter* instance_ = NULL; in instance() local 19 if (instance_ == NULL) { in instance() 20 instance_ = new TestFilter(); in instance() 21 instance_->reset(); in instance() 23 return instance_; in instance()
|
D | gtest-ext.cc | 19 static TestDefManager* instance_ = NULL; in instance() local 20 if (instance_ == NULL) { in instance() 21 instance_ = new TestDefManager(); in instance() 23 return instance_; in instance()
|
/third_party/boost/libs/statechart/example/Handcrafted/ |
D | Handcrafted.cpp | 58 return instance_; in instance() 62 static const Derived instance_; member in state 66 const Derived state< Derived >::instance_; member in state< Derived >
|