mirror of https://github.com/Icinga/icinga2.git
parent
0a76921086
commit
3d1490529f
|
@ -193,6 +193,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();
|
||||||
|
@ -221,6 +223,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…
Reference in New Issue