From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,57893ac51069959a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.75.170 with SMTP id d10mr3980249pbw.6.1327477099555; Tue, 24 Jan 2012 23:38:19 -0800 (PST) Path: lh20ni221567pbb.0!nntp.google.com!news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: "C - like: THIS" pointer to a task type inside a task function Date: Wed, 25 Jan 2012 08:38:19 +0100 Organization: A noiseless patient Spider Message-ID: References: <3deb0849-ec07-4cc5-b722-a253b614feee@rk3g2000pbb.googlegroups.com> Mime-Version: 1.0 Injection-Date: Wed, 25 Jan 2012 07:38:19 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="cJo7kSTQUrCFv2/D8KKtqw"; logging-data="25798"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18koSE5/u1ZBQjBOwBLGkIj" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <3deb0849-ec07-4cc5-b722-a253b614feee@rk3g2000pbb.googlegroups.com> Cancel-Lock: sha1:zIQMooHneHhZpUqSRIkKnuN3K0w= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-01-25T08:38:19+01:00 List-Id: Le 25/01/2012 01:42, Adam Beneschan a �crit : > A better idea (in my opinion) is to set things up so that the client > will *call* an entry, rather than accept an entry, when it's ready to > wait for the request to be completed. It can't be an entry in the > server, though, since there's no construct in Ada to "accept" an entry > just from one specific task. In a sense, you can. In the first rendezvous, provide to the client an index into an entry family used to retrieve the data. Excerpt from the client side: Server.Send_Data (Data, Inx); -- do something Server.Retrieve_Data(Inx)(Data); -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr