mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6230 from jbeich/boost-1.67
Unbreak build against Boost 1.67
This commit is contained in:
commit
b76ef91908
|
@ -292,7 +292,7 @@ void Timer::TimerThreadProc()
|
||||||
|
|
||||||
if (wait > 0.01) {
|
if (wait > 0.01) {
|
||||||
/* Wait for the next timer. */
|
/* Wait for the next timer. */
|
||||||
l_TimerCV.timed_wait(lock, boost::posix_time::milliseconds(wait * 1000));
|
l_TimerCV.timed_wait(lock, boost::posix_time::milliseconds(long(wait * 1000)));
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ void CheckerComponent::CheckThreadProc()
|
||||||
|
|
||||||
if (wait > 0) {
|
if (wait > 0) {
|
||||||
/* Wait for the next check. */
|
/* Wait for the next check. */
|
||||||
m_CV.timed_wait(lock, boost::posix_time::milliseconds(wait * 1000));
|
m_CV.timed_wait(lock, boost::posix_time::milliseconds(long(wait * 1000)));
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ Dictionary::Ptr EventQueue::WaitForEvent(void *client, double timeout)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_CV.timed_wait(lock, boost::posix_time::milliseconds(timeout * 1000)))
|
if (!m_CV.timed_wait(lock, boost::posix_time::milliseconds(long(timeout * 1000))))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue