Subject: Re: [boost] [compute] Some remarks
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2015-01-04 01:03:42
On 3 Jan 2015 at 12:20, Sebastian Schaetz wrote:
> This is something Joel tries to convince me of but I'm resisting. Could you
> shed some light on how events are almost equivalent to futures? Futures
> store the result of the asynchronous computation.
A shared_future is to a future as a win32 manual reset event is to a
win32 auto reset event.
The value transport in a future is of course illusory. Simply think
purely in terms of future<void>. The key part, and where futures
strongly resemble events, is in the signal wait-release part.
-- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk