|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85741 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2013-09-17 17:39:38
Author: chris_kohlhoff
Date: 2013-09-17 17:39:38 EDT (Tue, 17 Sep 2013)
New Revision: 85741
URL: http://svn.boost.org/trac/boost/changeset/85741
Log:
Fix a regression on Windows where multiple threads are running an io_service.
Text files modified:
trunk/boost/asio/detail/impl/win_iocp_io_service.ipp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/asio/detail/impl/win_iocp_io_service.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/win_iocp_io_service.ipp Tue Sep 17 17:38:41 2013 (r85740)
+++ trunk/boost/asio/detail/impl/win_iocp_io_service.ipp 2013-09-17 17:39:38 EDT (Tue, 17 Sep 2013) (r85741)
@@ -283,7 +283,8 @@
if (::InterlockedCompareExchange(&op->ready_, 1, 0) == 1)
{
// Enqueue the operation on the I/O completion port.
- if (!::PostQueuedCompletionStatus(iocp_.handle, 0, 0, op))
+ if (!::PostQueuedCompletionStatus(iocp_.handle,
+ 0, overlapped_contains_result, op))
{
// Out of resources. Put on completed queue instead.
mutex::scoped_lock lock(dispatch_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