Lines Matching refs:instance

59   auto instance = started_modules_.find(module);  in Get()  local
60 ASSERT(instance != started_modules_.end()); in Get()
61 return instance->second; in Get()
74 void ModuleRegistry::set_registry_and_handler(Module* instance, Thread* thread) const { in set_registry_and_handler() argument
75 instance->registry_ = this; in set_registry_and_handler()
76 instance->handler_ = new Handler(thread); in set_registry_and_handler()
86 Module* instance = module->ctor_(); in Start() local
87 last_instance_ = "starting " + instance->ToString(); in Start()
88 set_registry_and_handler(instance, thread); in Start()
90 LOG_DEBUG("Starting dependencies of %s", instance->ToString().c_str()); in Start()
91 instance->ListDependencies(&instance->dependencies_); in Start()
92 Start(&instance->dependencies_, thread); in Start()
94 …LOG_DEBUG("Finished starting dependencies and calling Start() of %s", instance->ToString().c_str()… in Start()
96 instance->Start(); in Start()
98 started_modules_[module] = instance; in Start()
99 LOG_DEBUG("Started %s", instance->ToString().c_str()); in Start()
100 return instance; in Start()
106 auto instance = started_modules_.find(*it); in StopAll() local
107 ASSERT(instance != started_modules_.end()); in StopAll()
108 last_instance_ = "stopping " + instance->second->ToString(); in StopAll()
111 LOG_INFO("Stopping Handler of Module %s", instance->second->ToString().c_str()); in StopAll()
112 instance->second->handler_->Clear(); in StopAll()
113 instance->second->handler_->WaitUntilStopped(kModuleStopTimeout); in StopAll()
114 LOG_INFO("Stopping Module %s", instance->second->ToString().c_str()); in StopAll()
115 instance->second->Stop(); in StopAll()
118 auto instance = started_modules_.find(*it); in StopAll() local
119 ASSERT(instance != started_modules_.end()); in StopAll()
120 delete instance->second->handler_; in StopAll()
121 delete instance->second; in StopAll()
122 started_modules_.erase(instance); in StopAll()
148 auto instance = module_registry_.started_modules_.find(*it); in DumpState() local
149 ASSERT(instance != module_registry_.started_modules_.end()); in DumpState()
150 queue.push(instance->second->GetDumpsysData(&builder)); in DumpState()