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

Method AquirePendingCheckSlot

lib/icinga/checkable-check.cpp:718–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718void Checkable::AquirePendingCheckSlot(int maxPendingChecks)
719{
720 std::unique_lock<std::mutex> lock(m_StatsMutex);
721 while (m_PendingChecks >= maxPendingChecks)
722 m_PendingChecksCV.wait(lock);
723
724 m_PendingChecks++;
725}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected