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

Method Freeze

lib/base/namespace.cpp:119–123  ·  view source on GitHub ↗

* Freeze the namespace, preventing further updates. * * This only prevents inserting, replacing or deleting values from the namespace. This operation has no effect on * objects referenced by the values, these remain mutable if they were before. */

Source from the content-addressed store, hash-verified

117 * objects referenced by the values, these remain mutable if they were before.
118 */
119void Namespace::Freeze() {
120 ObjectLock olock(this);
121
122 m_Frozen.store(true, std::memory_order_release);
123}
124
125bool Namespace::Frozen() const
126{

Callers

nothing calls this directly

Calls 1

storeMethod · 0.80

Tested by

no test coverage detected