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

Method AddMember

lib/icinga/hostgroup.cpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void HostGroup::AddMember(const Host::Ptr& host)
67{
68 host->AddGroup(GetName());
69
70 std::unique_lock<std::mutex> lock(m_HostGroupMutex);
71 m_Members.insert(host);
72}
73
74void HostGroup::RemoveMember(const Host::Ptr& host)
75{

Callers

nothing calls this directly

Calls 2

AddGroupMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected