Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
66
void 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
74
void HostGroup::RemoveMember(const Host::Ptr& host)
75
{
Callers
nothing calls this directly
Calls
2
AddGroup
Method · 0.45
insert
Method · 0.45
Tested by
no test coverage detected