comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: requeue with abort and timed call
Date: Mon, 29 Dec 2008 11:42:43 +0100
Date: 2008-12-29T11:42:43+01:00	[thread overview]
Message-ID: <9j9ajg.3a7.ln@hunter.axlog.fr> (raw)
In-Reply-To: <7p8onuvzdz18$.1m1dq8n3b52q5.dlg@40tude.net>

Dmitry A. Kazakov a �crit :
> On Sun, 28 Dec 2008 07:53:44 -0800 (PST), christoph.grein@eurocopter.com
> wrote:
> 
>> I do not see a problem with aborting. Why should the entry call be
>> aborted?
> 
> Because the request remains *queued* after expiration of the timed entry
> call.
> 
There seems to be some confusion about terms here.

For a timed entry call, the call is /cancelled/ if the it is not 
accepted within the given time span. If the call has been requeued, it 
is the beginning of the second accept that determines the deadline.

However, there is no /abort/ in this example. The "with abort" in the 
requeue statement really means that the rendezvous will start over from 
scratch, implying that the queued task could be aborted (or cancelled by 
a timed entry call, or asynchronous transfer of control). Without the 
"with abort", the second queue is considered as within the first 
rendezvous, and a caller is abort-deferred during a rendezvous (and 
since it is the acceptance time that matters for timed entry call, it 
will be too late to cancel the call).

Anyway, it is clear that the second call should be cancelled in this 
example.
-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  parent reply	other threads:[~2008-12-29 10:42 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-28 13:24 requeue with abort and timed call ishikawa
2008-12-28 14:30 ` Dmitry A. Kazakov
2008-12-28 15:53   ` christoph.grein
2008-12-28 16:09     ` christoph.grein
2008-12-28 17:46       ` ishikawa
2008-12-29 10:23         ` christoph.grein
2008-12-29 10:55           ` Dmitry A. Kazakov
2008-12-29 11:17             ` christoph.grein
2008-12-29 12:27               ` Dmitry A. Kazakov
2008-12-28 17:16     ` Dmitry A. Kazakov
2008-12-28 21:42       ` Robert A Duff
2008-12-29 10:42       ` Jean-Pierre Rosen [this message]
2008-12-29 21:05         ` sjw
2008-12-30  9:25           ` Jean-Pierre Rosen
2008-12-30 13:18             ` christoph.grein
2008-12-30 15:39               ` Jean-Pierre Rosen
2008-12-30 17:01                 ` christoph.grein
2008-12-30 17:16                   ` ishikawa
2008-12-30 15:54               ` ishikawa
2008-12-30 21:33             ` sjw
2008-12-30 22:52               ` Robert A Duff
2008-12-31  9:21               ` Jean-Pierre Rosen
2008-12-31 15:39                 ` christoph.grein
2008-12-31 16:14                   ` Jean-Pierre Rosen
2009-01-03 16:49                     ` ishikawa
2009-01-03 21:09                       ` Jeffrey R. Carter
2009-01-04 15:40                         ` christoph.grein
2009-01-04 17:09                           ` Jeffrey R. Carter
2009-01-04 18:03                         ` ishikawa
2009-01-04 18:56                           ` Dmitry A. Kazakov
2009-01-04 23:17                             ` belteshazzar
2009-01-05  9:12                               ` Dmitry A. Kazakov
2009-01-05  2:48                             ` Jeffrey R. Carter
2009-01-05  9:30                               ` Dmitry A. Kazakov
2009-01-05 20:28                                 ` Jeffrey R. Carter
2009-01-05 20:47                                   ` Dmitry A. Kazakov
2009-01-06  2:35                                     ` Jeffrey R. Carter
2009-01-05 10:17                           ` Jean-Pierre Rosen
2008-12-28 15:53 ` sjw
replies disabled

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