Home
last modified time | relevance | path

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

12

/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
/external/protobuf/src/google/protobuf/stubs/
Dsingleton.h45 return instance_; in get()
48 delete instance_; in ShutDown() local
49 instance_ = NULL; in ShutDown()
53 instance_ = new T(); in Init()
56 static T* instance_; variable
63 T* Singleton<T>::instance_ = NULL;
/external/libchrome/base/memory/
Dsingleton.h249 subtle::AtomicWord value = subtle::Acquire_Load(&instance_); in get()
255 if (subtle::Acquire_CompareAndSwap(&instance_, 0, in get()
263 subtle::Release_Store(&instance_, in get()
273 value = internal::WaitForInstance(&instance_); in get()
284 Traits::Delete(reinterpret_cast<Type*>(subtle::NoBarrier_Load(&instance_))); in OnExit()
285 instance_ = 0; in OnExit()
287 static subtle::AtomicWord instance_; variable
291 subtle::AtomicWord Singleton<Type, Traits, DifferentiatingType>::instance_ = 0;
/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/src/tracing/
Dtracing-category-observer.cc14 TracingCategoryObserver* TracingCategoryObserver::instance_ = nullptr; member in v8::tracing::TracingCategoryObserver
17 TracingCategoryObserver::instance_ = new TracingCategoryObserver(); in SetUp()
19 TracingCategoryObserver::instance_); in SetUp()
29 TracingCategoryObserver::instance_); in TearDown()
30 delete TracingCategoryObserver::instance_; in TearDown()
Dtracing-category-observer.h29 static TracingCategoryObserver* instance_;
/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/tensorflow/tensorflow/core/debug/
Ddebug_callback_registry.cc22 /*static */ DebugCallbackRegistry* DebugCallbackRegistry::instance_ = nullptr; member in tensorflow::DebugCallbackRegistry
25 if (instance_ == nullptr) { in singleton()
26 instance_ = new DebugCallbackRegistry(); in singleton()
28 return instance_; in singleton()
Ddebug_callback_registry.h66 static DebugCallbackRegistry* instance_; variable
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dprocess_state.cc69 ProcessState* ProcessState::instance_ = nullptr; member in tensorflow::ProcessState
72 if (instance_ == nullptr) { in singleton()
73 instance_ = new ProcessState; in singleton()
76 return instance_; in singleton()
80 CHECK(instance_ == nullptr); in ProcessState()
81 instance_ = this; in ProcessState()
88 instance_ = nullptr; in ~ProcessState()
/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/wasm/
Dwasm-debug.cc30 WasmInstance instance_; member in __anon42a414690111::InterpreterHandle
40 : instance_(debug_info->wasm_instance()->compiled_module()->module()), in InterpreterHandle()
41 interpreter_(GetBytesEnv(&instance_, debug_info), &allocator_), in InterpreterHandle()
45 instance_.mem_start = in InterpreterHandle()
47 CHECK(mem_buffer->byte_length()->ToUint32(&instance_.mem_size)); in InterpreterHandle()
49 DCHECK_EQ(0, instance_.module->min_mem_pages); in InterpreterHandle()
50 instance_.mem_start = nullptr; in InterpreterHandle()
51 instance_.mem_size = 0; in InterpreterHandle()
66 const WasmModule* module() { return instance_.module; } in module()
/external/v8/tools/clang/blink_gc_plugin/
DBlinkGCPluginConsumer.cpp68 : instance_(instance), in BlinkGCPluginConsumer()
96 json_ = JsonWriter::from(instance_.createOutputFile( in HandleTranslationUnit()
101 instance_.getFrontendOpts().OutputFile, // BaseInput in HandleTranslationUnit()
131 if (!instance_.getLangOpts().DelayedTemplateParsing) in ParseFunctionTemplates()
135 clang::Sema& sema = instance_.getSema(); in ParseFunctionTemplates()
143 if (instance_.getSourceManager().isInSystemHeader( in ParseFunctionTemplates()
144 instance_.getSourceManager().getSpellingLoc(fd->getLocation()))) in ParseFunctionTemplates()
659 const SourceManager& source_manager = instance_.getSourceManager(); in GetLocString()
721 const SourceManager& source_manager = instance_.getSourceManager(); in GetFilename()
DRecordInfo.h165 : instance_(instance) in RecordCache()
199 clang::CompilerInstance& instance() const { return instance_; } in instance()
202 clang::CompilerInstance& instance_;
/external/pdfium/core/fxge/win32/
Dfx_win32_dwrite.cpp77 if (!instance_) { in GetLoader()
78 instance_ = new CDwFontFileLoader(); in GetLoader()
80 return instance_; in GetLoader()
82 static bool IsLoaderInitialized() { return !!instance_; } in IsLoaderInitialized()
87 static IDWriteFontFileLoader* instance_; member in CDwFontFileLoader
338 IDWriteFontFileLoader* CDwFontFileLoader::instance_ = nullptr; member in CDwFontFileLoader
358 instance_ = nullptr; in Release()
/external/tensorflow/tensorflow/stream_executor/
Dplugin_registry.cc52 /* static */ PluginRegistry* PluginRegistry::instance_ = nullptr; member in perftools::gputools::PluginRegistry
58 if (instance_ == nullptr) { in Instance()
59 instance_ = new PluginRegistry(); in Instance()
61 return instance_; in Instance()
/external/v8/src/ic/
Dic-stats.h63 V8_INLINE static ICStats* instance() { return instance_.Pointer(); } in instance()
66 static base::LazyInstance<ICStats>::type instance_;
/external/v8/tools/clang/plugins/
DChromeClassTester.h30 clang::CompilerInstance& instance() { return instance_; } in instance()
85 clang::CompilerInstance& instance_; variable
DChromeClassTester.cpp40 instance_(instance), in ChromeClassTester()
219 const SourceManager& source_manager = instance_.getSourceManager(); in InImplementationFile()
334 const SourceManager& source_manager = instance_.getSourceManager(); in GetFilename()
/external/libchrome/base/power_monitor/
Dpower_monitor_device_source.h68 HMODULE instance_; variable

12