From: Adam Beneschan <adam@irvine.com>
Subject: Re: "C - like: THIS" pointer to a task type inside a task function
Date: Tue, 24 Jan 2012 16:46:56 -0800 (PST)
Date: 2012-01-24T16:46:56-08:00 [thread overview]
Message-ID: <b22fffe6-8faf-4119-b27d-9693dc78c60a@iu7g2000pbc.googlegroups.com> (raw)
In-Reply-To: 3deb0849-ec07-4cc5-b722-a253b614feee@rk3g2000pbb.googlegroups.com
On Jan 24, 4:42 pm, Adam Beneschan <a...@irvine.com> wrote:
> 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 Ada 83, I would have had the server
> create a new, small "helper" task for this purpose; the server would
> create a new task when the request is initiated, and later it would
> tell that task when the request can be completed, and the client would
> wait on that task. Now, protected types can be used for a similar
> purpose....
OK, I didn't realize it at the time, but this is pretty much the same
thing Dmitry suggested. Just to give credit where it's due...
-- Adam
next prev parent reply other threads:[~2012-01-25 1:15 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 [this message]
2012-01-25 7:38 ` J-P. Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox