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

Method AddMember

lib/icinga/usergroup.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void UserGroup::AddMember(const User::Ptr& user)
68{
69 user->AddGroup(GetName());
70
71 std::unique_lock<std::mutex> lock(m_UserGroupMutex);
72 m_Members.insert(user);
73}
74
75void UserGroup::RemoveMember(const User::Ptr& user)
76{

Callers

nothing calls this directly

Calls 2

AddGroupMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected