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

Method SetAuthority

lib/base/configobject.cpp:452–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void ConfigObject::SetAuthority(bool authority)
453{
454 ObjectLock olock(this);
455
456 if (authority && GetPaused()) {
457 SetResumeCalled(false);
458 Resume();
459 ASSERT(GetResumeCalled());
460 SetPaused(false);
461 } else if (!authority && !GetPaused()) {
462 SetPaused(true);
463 SetPauseCalled(false);
464 Pause();
465 ASSERT(GetPauseCalled());
466 }
467}
468
469void ConfigObject::DumpObjects(const String& filename, int attributeTypes)
470{

Callers 3

UpdateObjectAuthorityMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected