MCPcopy Create free account
hub / github.com/Icinga/icinga2 / AddMember

Method AddMember

lib/icinga/servicegroup.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void ServiceGroup::AddMember(const Service::Ptr& service)
70{
71 service->AddGroup(GetName());
72
73 std::unique_lock<std::mutex> lock(m_ServiceGroupMutex);
74 m_Members.insert(service);
75}
76
77void ServiceGroup::RemoveMember(const Service::Ptr& service)
78{

Callers

nothing calls this directly

Calls 2

AddGroupMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected