|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66020 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2010-10-16 08:59:30
Author: chris_kohlhoff
Date: 2010-10-16 08:59:29 EDT (Sat, 16 Oct 2010)
New Revision: 66020
URL: http://svn.boost.org/trac/boost/changeset/66020
Log:
Timers with expiry times set more than 5 minutes in the future need the
waitable timer to be periodic. Refs #4745.
Text files modified:
trunk/boost/asio/detail/impl/win_iocp_io_service.ipp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/boost/asio/detail/impl/win_iocp_io_service.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/win_iocp_io_service.ipp (original)
+++ trunk/boost/asio/detail/impl/win_iocp_io_service.ipp 2010-10-16 08:59:29 EDT (Sat, 16 Oct 2010)
@@ -447,6 +447,12 @@
boost::asio::error::get_system_category());
boost::asio::detail::throw_error(ec, "timer");
}
+
+ LARGE_INTEGER timeout;
+ timeout.QuadPart = -max_timeout_usec;
+ timeout.QuadPart *= 10;
+ ::SetWaitableTimer(waitable_timer_.handle,
+ &timeout, max_timeout_msec, 0, 0, FALSE);
}
if (!timer_thread_)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk