if (wait > 0.01) {
/* 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;
}
if (wait > 0) {
/* 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;
}
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();
}
}