[Boost-bugs] [Boost C++ Libraries] #3923: ASIO calls copy-constructor for handler object from another thread

Subject: [Boost-bugs] [Boost C++ Libraries] #3923: ASIO calls copy-constructor for handler object from another thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-11 18:53:10


#3923: ASIO calls copy-constructor for handler object from another thread
--------------------------+-------------------------------------------------
 Reporter: Dmitry | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: asio
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 win_iocp_socket_service use select_reactor with OwnThread=true for
 performing connect operations. While finish connect op, handler copy-
 constructed on the stack (reactor_op_queue::do_complete/do_destroy), but
 constructor invoked from another thread (internal thread of
 select_reactor). That means, that if our handler have specific copy-
 constructor (for example, we use intrusive_ptr for holding this in bind_t)
 we need to synchronize it with main thread (or use interlocked functions).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3923>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC