220 4941 <51B232F5.70905@wanadoo.fr> article
Path: news.gmane.org!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: N3558 :A standardized representation of
 Asynchronous operation
Date: Fri, 07 Jun 2013 21:22:29 +0200
Lines: 42
Approved: news@gmane.org
Message-ID: <51B232F5.70905@wanadoo.fr>
References: <519F9E48.7050700@wanadoo.fr> <51A0B7C3.40109@wanadoo.fr> <51A6EFE6.4030407@wanadoo.fr> <51A7039F.20007@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1370632965 1677 80.91.229.3 (7 Jun 2013 19:22:45 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 7 Jun 2013 19:22:45 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBB5XFZCGQKGQECFDXSNI@isocpp.org Fri Jun 07 21:22:42 2013
Return-path: <std-proposals+bncBDH67CONY4PBB5XFZCGQKGQECFDXSNI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f69.google.com ([74.125.82.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDH67CONY4PBB5XFZCGQKGQECFDXSNI@isocpp.org>)
	id 1Ul2F5-0001AA-W9
	for gclcip-std-proposals@m.gmane.org; Fri, 07 Jun 2013 21:22:32 +0200
Original-Received: by mail-wg0-f69.google.com with SMTP id j13sf4190370wgh.4
        for <gclcip-std-proposals@m.gmane.org>; Fri, 07 Jun 2013 12:22:31 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-beenthere:message-id:date:from:user-agent:mime-version:to:subject
         :references:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type
         :content-transfer-encoding;
        bh=dox2TDhvxwBqX+L4Ue/3Zn9ZAIsnhRll+YGAMc3kQ0I=;
        b=a3a+0JlcPIA3Ejv5ILJrsgJGR4DUekJGG5W3nRZn/cylt69ExCA1QcghquCyASQyPw
         TJ7BHf6TSqKODwl+ZMxO6DhovoporBbjyXdbmnyIY9y2UbN3uiGyfNIDJFo7+HPnEy74
         4VzyHVKEQMVwKyIjrZJO4YGBIoNPCY09VUJFI/j0WAS2JGox2IqPd24C+RU1KoGAPIqQ
         A5pYNRbIZ9U7lWCiuEE6g6Kx5BIfsoB/9ayEap0h/rixfMEyKFRKspwfS3YobfjLXC/m
         /levnUfU/I1FGTaPlWdLhRo+BpKEwiWDJS3dFIiKShB+PtgVLaxB6LPzuKq 
X-Received: by 10.180.185.115 with SMTP id fb19mr1722092wic.0.1370632951217;
        Fri, 07 Jun 2013 12:22:31 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.104.36 with SMTP id gb4ls329842wib.46.canary; Fri, 07 Jun
 2013 12:22:30 -0700 (PDT)
X-Received: by 10.194.11.72 with SMTP id o8mr135418wjb.0.1370632950280;
        Fri, 07 Jun 2013 12:22:30 -0700 (PDT)
Original-Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr. [80.12.242.126])
        by mx.google.com with ESMTP id r7si59806wje.81.2013.06.07.12.22.30
        for <std-proposals@isocpp.org>;
        Fri, 07 Jun 2013 12:22:30 -0700 (PDT)
Received-SPF: neutral (google.com: 80.12.242.126 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.126;
Original-Received: from pc4.home ([2.13.5.156])
	by mwinf5d60 with ME
	id lXNV1l00Y3MyQeS03XNVhh; Fri, 07 Jun 2013 21:22:30 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
In-Reply-To: <51A7039F.20007@gmail.com>
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.126 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mail=vicente.botet@wanadoo.fr
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4941
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4941>

Le 30/05/13 09:45, Anthony Williams a =E9crit :
> On 30/05/13 07:21, Vicente J. Botet Escriba wrote:
>> Le 25/05/13 15:08, Vicente J. Botet Escriba a =E9crit :
>>> Le 24/05/13 19:07, Vicente J. Botet Escriba a =E9crit :
>>>> Hi,
>>>>
>>>> What is the rationale for when_all to return
>>>> future<vector<future<R>>> instead of  future<vector<R>>?
>>>> What is the rationale for when_any to return
>>>> future<vector<future<R>>> instead of future<pair<size_t, R>> ?
>>>>
>>>>
>>> I have one more question about when_any. What would be the expected
>>> behavior when when_any has parameters that shared the same shared
>>> state, as in
>>>
>>>     std::shared_future<int> fi1 =3D
>>> std::async(calculate_the_answer_to_life_the_universe_and_everything).sh=
are();
>>>     std::shared_future<int> fi2 =3D fi1;
>>>     std::when_any(fi1, fi2).wait();
>>>
> This will wait until the async finishes. Both futures become ready
> together, so there is no problem here.
>
Any other point of view?

Vicente

--=20

---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/?hl=3Den.



.
