Home
last modified time | relevance | path

Searched refs:instance_ (Results 1 – 22 of 22) sorted by relevance

/external/webrtc/webrtc/base/
Dreferencecountedsingletonfactory.h48 scoped_ptr<Interface> instance_; variable
58 ASSERT(instance_.get() != NULL); in GetInstance()
63 return instance_.get(); in GetInstance()
69 ASSERT(instance_.get() != NULL); in ReleaseInstance()
89 : instance_(NULL), in rcsf_ptr()
99 return *instance_;
104 return instance_;
111 return instance_; in get()
117 if (instance_) { in release()
118 instance_ = NULL; in release()
[all …]
Dwin32window.cc22 HINSTANCE Win32Window::instance_ = NULL; member in rtc::Win32Window
43 &instance_)) { in Create()
52 wcex.hInstance = instance_; in Create()
62 x, y, cx, cy, parent, NULL, instance_, this); in Create()
72 ::UnregisterClass(MAKEINTATOM(window_class_), instance_); in Shutdown()
Dmessagequeue.cc35 MessageQueueManager* MessageQueueManager::instance_ = NULL; member in rtc::MessageQueueManager
40 if (!instance_) in Instance()
41 instance_ = new MessageQueueManager; in Instance()
42 return instance_; in Instance()
46 return instance_ != NULL; in IsInitialized()
72 if (!instance_) return; in Remove()
95 instance_ = NULL; in RemoveInternal()
103 if (!instance_) return; in Clear()
Dreferencecountedsingletonfactory_unittest.cc32 instance_.reset(new MyExistenceWatcher()); in SetupInstance()
37 instance_.reset(); in CleanupInstance()
Dwin32window.h50 static HINSTANCE instance_; variable
Dmessagequeue.h60 static MessageQueueManager* instance_; variable
/external/wpa_supplicant_8/wpa_supplicant/binder/
Dbinder_manager.cpp22 BinderManager *BinderManager::instance_ = NULL; member in wpa_supplicant_binder::BinderManager
27 if (!instance_) in getInstance()
28 instance_ = new BinderManager(); in getInstance()
29 return instance_; in getInstance()
35 if (instance_) in destroyInstance()
36 delete instance_; in destroyInstance()
37 instance_ = NULL; in destroyInstance()
Dbinder_manager.h48 static BinderManager *instance_; variable
/external/libchrome/base/memory/
Dsingleton.h238 subtle::AtomicWord value = subtle::Acquire_Load(&instance_); in get()
244 if (subtle::Acquire_CompareAndSwap(&instance_, 0, in get()
252 subtle::Release_Store(&instance_, in get()
262 value = internal::WaitForInstance(&instance_); in get()
273 Traits::Delete(reinterpret_cast<Type*>(subtle::NoBarrier_Load(&instance_))); in OnExit()
274 instance_ = 0; in OnExit()
276 static subtle::AtomicWord instance_; variable
280 subtle::AtomicWord Singleton<Type, Traits, DifferentiatingType>::instance_ = 0;
/external/webrtc/webrtc/sound/
Dplatformsoundsystemfactory.cc25 if (!instance_.get()) { in SetupInstance()
26 instance_.reset(CreatePlatformSoundSystem()); in SetupInstance()
28 if (!instance_->Init()) { in SetupInstance()
36 instance_->Terminate(); in CleanupInstance()
Dnullsoundsystemfactory.cc24 instance_.reset(new NullSoundSystem()); in SetupInstance()
29 instance_.reset(); in CleanupInstance()
/external/webrtc/webrtc/system_wrappers/source/
Ddata_log.cc28 DataLogImpl* DataLogImpl::instance_ = NULL; member in webrtc::DataLogImpl
325 new rtc::PlatformThread(DataLogImpl::Run, instance_, "DataLog")), in DataLogImpl()
342 if (instance_ == NULL) { in CreateLog()
343 instance_ = new DataLogImpl(); in CreateLog()
344 return instance_->Init(); in CreateLog()
346 ++instance_->counter_; in CreateLog()
358 return instance_; in StaticInstance()
363 if (instance_ && instance_->counter_ > 1) { in ReturnLog()
364 --instance_->counter_; in ReturnLog()
367 delete instance_; in ReturnLog()
[all …]
/external/v8/test/cctest/
Dtest-sampler-api.cc94 CHECK(!instance_); in SamplingTestHelper()
95 instance_ = this; in SamplingTestHelper()
108 instance_ = NULL; in ~SamplingTestHelper()
124 instance_->DoCollectSample(); in CollectSample()
128 instance_->DoJitCodeEventHandler(event); in JitCodeEventHandler()
187 static SamplingTestHelper* instance_; member in __anon3a0c75d30111::SamplingTestHelper
190 SamplingTestHelper* SamplingTestHelper::instance_; member in __anon3a0c75d30111::SamplingTestHelper
Dtest-heap-profiler.cc1547 CHECK(!instance_); in GraphWithImplicitRefs()
1548 instance_ = this; in GraphWithImplicitRefs()
1560 instance_ = NULL; in ~GraphWithImplicitRefs()
1565 instance_->AddImplicitReferences(); in gcPrologue()
1583 static GraphWithImplicitRefs* instance_; member in GraphWithImplicitRefs
1587 GraphWithImplicitRefs* GraphWithImplicitRefs::instance_ = NULL; member in GraphWithImplicitRefs
Dtest-api.cc13762 CHECK(instance_ == NULL); in SetFunctionEntryHookTest()
13763 instance_ = this; in SetFunctionEntryHookTest()
13766 CHECK(instance_ == this); in ~SetFunctionEntryHookTest()
13767 instance_ = NULL; in ~SetFunctionEntryHookTest()
13777 CHECK(instance_ != NULL); in JitEvent()
13778 instance_->OnJitEvent(event); in JitEvent()
13785 CHECK(instance_ != NULL); in EntryHook()
13786 instance_->OnEntryHook(function, return_addr_location); in EntryHook()
13790 CHECK(instance_ != NULL); in RuntimeCallback()
13815 static SetFunctionEntryHookTest* instance_; member in SetFunctionEntryHookTest
[all …]
/external/libbrillo/brillo/
Dflag_helper.cc154 brillo::FlagHelper* instance_ = nullptr; variable
165 if (!instance_) in GetInstance()
166 instance_ = new FlagHelper(); in GetInstance()
168 return instance_; in GetInstance()
172 delete instance_; in ResetForTesting()
173 instance_ = nullptr; in ResetForTesting()
/external/v8/src/profiler/
Dsampler.cc583 if (instance_ == NULL) { in AddActiveSampler()
586 instance_ = new SamplerThread(sampler->interval()); in AddActiveSampler()
591 DCHECK(!instance_->active_samplers_.Contains(sampler)); in AddActiveSampler()
592 DCHECK(instance_->interval_ == sampler->interval()); in AddActiveSampler()
593 instance_->active_samplers_.Add(sampler); in AddActiveSampler()
595 if (need_to_start) instance_->StartSynchronously(); in AddActiveSampler()
604 bool removed = instance_->active_samplers_.RemoveElement(sampler); in RemoveActiveSampler()
610 if (instance_->active_samplers_.is_empty()) { in RemoveActiveSampler()
611 instance_to_remove = instance_; in RemoveActiveSampler()
612 instance_ = NULL; in RemoveActiveSampler()
[all …]
/external/pdfium/core/src/fxge/win32/
Dfx_win32_dwrite.cpp68 if (!instance_) { in GetLoader()
69 instance_ = new CDwFontFileLoader(); in GetLoader()
71 return instance_; in GetLoader()
73 static bool IsLoaderInitialized() { return instance_ != NULL; } in IsLoaderInitialized()
78 static IDWriteFontFileLoader* instance_; member in CDwFontFileLoader
309 IDWriteFontFileLoader* CDwFontFileLoader::instance_ = NULL; member in CDwFontFileLoader
327 instance_ = NULL; in Release()
/external/libchrome/base/power_monitor/
Dpower_monitor_device_source.h80 HMODULE instance_; variable
/external/webrtc/webrtc/system_wrappers/include/
Ddata_log_impl.h145 static DataLogImpl* instance_; variable
/external/v8/src/
Dutils.h467 T instance_;
478 , instance_(&resource->instance_) {
486 instance_ = NULL;
489 T* value() { return instance_; }
490 T* operator -> () { return instance_; }
494 T* instance_;
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/
Dbase.js425 return ctor.instance_ || (ctor.instance_ = new ctor());