Re: [Boost-bugs] [Boost C++ Libraries] #7798: boost::future set_wait_callback thread safety issues

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7798: boost::future set_wait_callback thread safety issues
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-15 14:27:26


#7798: boost::future set_wait_callback thread safety issues
--------------------------------+-------------------------------------------
  Reporter: ronag89@… | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by viboes):

 The issue is more complex than it seems at a first glance. From the
 documentation it seems that the callback should be called each time a wait
 function is called.


 {{{
 "Effects: Store a copy of f with the asynchronous result associated with
 *this as a wait callback. This will replace any existing wait callback
 store alongside that result. If a thread subsequently calls one of the
 wait functions on a future or boost::shared_future associated with this
 result, and the result is not ready, f(*this) shall be invoked."
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7798#comment:1>
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:11 UTC