mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
parent
51c89fbb5f
commit
8f7b819c9d
@ -194,6 +194,8 @@ void CheckerComponent::CheckThreadProc(void)
|
|||||||
Log(LogDebug, "CheckerComponent")
|
Log(LogDebug, "CheckerComponent")
|
||||||
<< "Executing check for '" << checkable->GetName() << "'";
|
<< "Executing check for '" << checkable->GetName() << "'";
|
||||||
|
|
||||||
|
Checkable::IncreasePendingChecks();
|
||||||
|
|
||||||
Utility::QueueAsyncCallback(boost::bind(&CheckerComponent::ExecuteCheckHelper, CheckerComponent::Ptr(this), checkable));
|
Utility::QueueAsyncCallback(boost::bind(&CheckerComponent::ExecuteCheckHelper, CheckerComponent::Ptr(this), checkable));
|
||||||
|
|
||||||
lock.lock();
|
lock.lock();
|
||||||
@ -222,6 +224,8 @@ void CheckerComponent::ExecuteCheckHelper(const Checkable::Ptr& checkable)
|
|||||||
Log(LogCritical, "checker", output);
|
Log(LogCritical, "checker", output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Checkable::DecreasePendingChecks();
|
||||||
|
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_Mutex);
|
boost::mutex::scoped_lock lock(m_Mutex);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user