Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60756 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2010-03-21 23:32:58


Author: chris_kohlhoff
Date: 2010-03-21 23:32:56 EDT (Sun, 21 Mar 2010)
New Revision: 60756
URL: http://svn.boost.org/trac/boost/changeset/60756

Log:
Fix cancellation in Windows HANDLE backend.

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

Modified: trunk/boost/asio/detail/win_iocp_handle_service.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_handle_service.hpp (original)
+++ trunk/boost/asio/detail/win_iocp_handle_service.hpp 2010-03-21 23:32:56 EDT (Sun, 21 Mar 2010)
@@ -618,7 +618,7 @@
   void start_write_op(implementation_type& impl, boost::uint64_t offset,
       const boost::asio::const_buffer& buffer, operation* op)
   {
- update_cancellation_thread_id();
+ update_cancellation_thread_id(impl);
     iocp_service_.work_started();
 
     if (!is_open(impl))
@@ -656,7 +656,7 @@
   void start_read_op(implementation_type& impl, boost::uint64_t offset,
       const boost::asio::mutable_buffer& buffer, operation* op)
   {
- update_cancellation_thread_id();
+ update_cancellation_thread_id(impl);
     iocp_service_.work_started();
 
     if (!is_open(impl))
@@ -691,7 +691,7 @@
   }
 
   // Update the ID of the thread from which cancellation is safe.
- void update_cancellation_thread_id()
+ void update_cancellation_thread_id(implementation_type& impl)
   {
 #if defined(BOOST_ASIO_ENABLE_CANCELIO)
     if (impl.safe_cancellation_thread_id_ == 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