From 41bcacc9e2602e975e461a8cbc2c59dbf2aac87a Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Mon, 22 Mar 2010 03:32:56 +0000 Subject: [PATCH] Fix cancellation in Windows HANDLE backend. [SVN r60756] --- include/boost/asio/detail/win_iocp_handle_service.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/asio/detail/win_iocp_handle_service.hpp b/include/boost/asio/detail/win_iocp_handle_service.hpp index 3f90a6f2..6fb1910f 100644 --- a/include/boost/asio/detail/win_iocp_handle_service.hpp +++ b/include/boost/asio/detail/win_iocp_handle_service.hpp @@ -618,7 +618,7 @@ private: 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 @@ private: 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 @@ private: } // 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)