Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-03-12 09:25:50


Author: chris_kohlhoff
Date: 2008-03-12 09:25:49 EDT (Wed, 12 Mar 2008)
New Revision: 43569
URL: http://svn.boost.org/trac/boost/changeset/43569

Log:
Revert to having the windows-bug workaround (short timeout on
GetQueuedCompletionStatus) on all threads as there are still scenarios
where threads can get stuck indefinitely.

Text files modified:
   trunk/boost/asio/detail/win_iocp_io_service.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/asio/detail/win_iocp_io_service.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_io_service.hpp (original)
+++ trunk/boost/asio/detail/win_iocp_io_service.hpp 2008-03-12 09:25:49 EDT (Wed, 12 Mar 2008)
@@ -393,7 +393,7 @@
             &timer_thread_, this_thread_id, 0) == 0);
 
       // Calculate timeout for GetQueuedCompletionStatus call.
- DWORD timeout = INFINITE;
+ DWORD timeout = max_timeout;
       if (dispatching_timers)
       {
         boost::asio::detail::mutex::scoped_lock lock(timer_mutex_);


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