Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60962 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2010-03-31 08:22:11


Author: chris_kohlhoff
Date: 2010-03-31 08:22:10 EDT (Wed, 31 Mar 2010)
New Revision: 60962
URL: http://svn.boost.org/trac/boost/changeset/60962

Log:
Fix so that lock is not held while reactor is running.

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

Modified: trunk/boost/asio/detail/task_io_service.hpp
==============================================================================
--- trunk/boost/asio/detail/task_io_service.hpp (original)
+++ trunk/boost/asio/detail/task_io_service.hpp 2010-03-31 08:22:10 EDT (Wed, 31 Mar 2010)
@@ -290,9 +290,7 @@
           }
           task_has_run = true;
 
- if (more_handlers)
- wake_one_idle_thread_and_unlock(lock);
- else
+ if (!more_handlers || !wake_one_idle_thread_and_unlock(lock))
             lock.unlock();
 
           op_queue<operation> completed_ops;


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