Explicitly use long with boost::posix_time

This commit is contained in:
Jan Beich 2018-04-15 04:02:42 +00:00 committed by Jean Flach
parent 8b488eb00f
commit e3ecf83bfb
3 changed files with 3 additions and 3 deletions

View File

@ -266,7 +266,7 @@ void Timer::TimerThreadProc(void)
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;
} }

View File

@ -130,7 +130,7 @@ void CheckerComponent::CheckThreadProc(void)
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;
} }

View File

@ -114,7 +114,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 Dictionary::Ptr(); return Dictionary::Ptr();
} }
} }