comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: ATC, an  example please.
Date: Thu, 30 Jun 2005 17:29:01 +0200
Date: 2005-06-30T17:28:59+02:00	[thread overview]
Message-ID: <xs87ddydgdmi.11o69y7wom1ur$.dlg@40tude.net> (raw)
In-Reply-To: wccbr5ongw0.fsf@shell01.TheWorld.com

On 30 Jun 2005 08:55:27 -0400, Robert A Duff wrote:

> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> 
>> ATC transfers control, it does not abort any other task.
> 
> Well, it does abort any tasks inside the abortable region of the ATC.
> The task in this example could be moved inside the ATC,
> and then it would be aborted automatically.

Yes.

> But I was under the impression that the original poster wanted to abort
> the processing inside the accept statement, and allow the task to loop
> back and accept entry calls again.

Maybe, however it is difficult to see why then there could be any need in
two tasks. During rendezvous they stay synchronous anyway, so it is better
to have a subprogram inside the ATC.

> I don't see the point of splitting into the Start and Ready entries,
> since the caller isn't doing anything useful in between.

Just to mark where the calculation starts...

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2005-06-30 15:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30  8:44 ATC, an example please e.coli
2005-06-30  9:32 ` Dmitry A. Kazakov
2005-06-30  9:59   ` e.coli
2005-06-30 11:06   ` Christoph Grein
2005-06-30 12:55   ` Robert A Duff
2005-06-30 15:29     ` Dmitry A. Kazakov [this message]
2005-06-30 20:31       ` Robert A Duff
2005-06-30  9:32 ` e.coli
2005-07-02  8:18 ` Craig Carey
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox