icinga2/lib/icinga/usergroup.ti
Alexander A. Klimov 98cfe491b7 Don't generate a mutex for each Locked<T>, share one per object
This reduces RAM usage per object by sizeof(mutex)*(FIELDS-1).
2024-11-13 15:59:48 +01:00

26 lines
419 B
Plaintext

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#include "icinga/customvarobject.hpp"
library icinga;
namespace icinga
{
class UserGroup : CustomVarObject
{
[config] String display_name {
get {{{
String displayName = m_DisplayName.load(m_FieldsMutex);
if (displayName.IsEmpty())
return GetName();
else
return displayName;
}}}
};
[config, no_user_modify] array(name(UserGroup)) groups;
};
}