|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84348 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2013-05-18 08:07:00
Author: chris_kohlhoff
Date: 2013-05-18 08:07:00 EDT (Sat, 18 May 2013)
New Revision: 84348
URL: http://svn.boost.org/trac/boost/changeset/84348
Log:
Fix a problem with lost thread wakeups that can occur when making
concurrent calls to run() and poll() on the same io_service object.
Text files modified:
trunk/boost/asio/detail/impl/task_io_service.ipp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/boost/asio/detail/impl/task_io_service.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/task_io_service.ipp (original)
+++ trunk/boost/asio/detail/impl/task_io_service.ipp 2013-05-18 08:07:00 EDT (Sat, 18 May 2013)
@@ -424,7 +424,10 @@
o = op_queue_.front();
if (o == &task_operation_)
+ {
+ wake_one_idle_thread_and_unlock(lock);
return 0;
+ }
}
if (o == 0)
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