From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: "C - like: THIS" pointer to a task type inside a task function
Date: Wed, 25 Jan 2012 08:38:19 +0100
Date: 2012-01-25T08:38:19+01:00 [thread overview]
Message-ID: <jfobhb$p66$1@dont-email.me> (raw)
In-Reply-To: <3deb0849-ec07-4cc5-b722-a253b614feee@rk3g2000pbb.googlegroups.com>
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
prev parent reply other threads:[~2012-01-25 7:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 19:32 "C - like: THIS" pointer to a task type inside a task function Ada BRL
2012-01-23 19:59 ` Dmitry A. Kazakov
2012-01-23 22:17 ` tmoran
2012-01-24 8:47 ` Dmitry A. Kazakov
2012-01-24 17:12 ` Ada BRL
2012-01-24 18:43 ` Dmitry A. Kazakov
2012-01-25 12:43 ` Ada BRL
2012-01-25 13:48 ` Dmitry A. Kazakov
2012-01-25 15:05 ` Ada BRL
2012-01-25 18:10 ` Dmitry A. Kazakov
2012-01-26 15:19 ` Ada BRL
2012-01-26 4:17 ` Randy Brukardt
2012-01-24 17:27 ` Ada BRL
2012-01-23 20:20 ` Jeffrey Carter
2012-01-24 17:13 ` Ada BRL
2012-01-24 6:39 ` J-P. Rosen
2012-01-25 0:42 ` Adam Beneschan
2012-01-25 0:46 ` Adam Beneschan
2012-01-25 7:38 ` J-P. Rosen [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox