Lines Matching refs:instance
58 auto instance = started_modules_.find(module); in Get() local
59 ASSERT(instance != started_modules_.end()); in Get()
60 return instance->second; in Get()
73 void ModuleRegistry::set_registry_and_handler(Module* instance, Thread* thread) const { in set_registry_and_handler() argument
74 instance->registry_ = this; in set_registry_and_handler()
75 instance->handler_ = new Handler(thread); in set_registry_and_handler()
84 Module* instance = module->ctor_(); in Start() local
85 set_registry_and_handler(instance, thread); in Start()
87 instance->ListDependencies(&instance->dependencies_); in Start()
88 Start(&instance->dependencies_, thread); in Start()
90 instance->Start(); in Start()
92 started_modules_[module] = instance; in Start()
93 return instance; in Start()
99 auto instance = started_modules_.find(*it); in StopAll() local
100 ASSERT(instance != started_modules_.end()); in StopAll()
103 LOG_INFO("Stopping Handler of Module %s", instance->second->ToString().c_str()); in StopAll()
104 instance->second->handler_->Clear(); in StopAll()
105 instance->second->handler_->WaitUntilStopped(kModuleStopTimeout); in StopAll()
106 LOG_INFO("Stopping Module %s", instance->second->ToString().c_str()); in StopAll()
107 instance->second->Stop(); in StopAll()
110 auto instance = started_modules_.find(*it); in StopAll() local
111 ASSERT(instance != started_modules_.end()); in StopAll()
112 delete instance->second->handler_; in StopAll()
113 delete instance->second; in StopAll()
114 started_modules_.erase(instance); in StopAll()
137 auto instance = module_registry_.started_modules_.find(*it); in DumpState() local
138 ASSERT(instance != module_registry_.started_modules_.end()); in DumpState()
139 queue.push(instance->second->GetDumpsysData(&builder)); in DumpState()