Lines Matching refs:svc
692 Service* svc = svc_p.get(); in MakeExecOneshotService() local
695 return svc; in MakeExecOneshotService()
699 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByName() local
703 if (svc != services_.end()) { in FindServiceByName()
704 return svc->get(); in FindServiceByName()
710 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByPid() local
714 if (svc != services_.end()) { in FindServiceByPid()
715 return svc->get(); in FindServiceByPid()
721 auto svc = std::find_if(services_.begin(), services_.end(), in FindServiceByKeychord() local
726 if (svc != services_.end()) { in FindServiceByKeychord()
727 return svc->get(); in FindServiceByKeychord()
739 void (*func)(Service* svc)) const { in ForEachServiceInClass()
748 void (*func)(Service* svc)) const { in ForEachServiceWithFlags()
756 void ServiceManager::RemoveService(const Service& svc) { in RemoveService() argument
758 [&svc] (const std::unique_ptr<Service>& s) { in RemoveService()
759 return svc.name() == s->name(); in RemoveService()
785 Service* svc = FindServiceByPid(pid); in ReapOneProcess() local
788 if (svc) { in ReapOneProcess()
790 svc->name().c_str(), pid); in ReapOneProcess()
805 if (!svc) { in ReapOneProcess()
809 if (svc->Reap()) { in ReapOneProcess()
811 RemoveService(*svc); in ReapOneProcess()