comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: requeue vs requeue with abort - code example pleaseeee
Date: Thu, 9 Dec 2010 17:22:55 +0100
Date: 2010-12-09T17:22:55+01:00	[thread overview]
Message-ID: <yhkldzsdkxsb.j3k2hqfq8pv9$.dlg@40tude.net> (raw)
In-Reply-To: 7bd3db89-ae9d-4e09-9590-676f85dcef9a@w2g2000yqb.googlegroups.com

On Thu, 9 Dec 2010 05:57:09 -0800 (PST), domel wrote:

> Since few weeks I'm learning ADA. I got stuck on requeue facility. I
> canno't completely grasp what the difference between requeue and
> requeue with abort is.

Use "requeue with abort" when the request is cancelable, i.e. serving it in
its current entry has not changed anything that could get broken if the
request were canceled later. This is the desired behavior.

If serving the request changes some vital things, e.g. you have initiated
its for processing memorizing some things etc, then use "requeue." Don't do
this if you don't need to, because it would make the clients blocked until
the request is serviced (a timed entry will not be able to cancel it).

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



  reply	other threads:[~2010-12-09 16:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-09 13:57 requeue vs requeue with abort - code example pleaseeee domel
2010-12-09 16:22 ` Dmitry A. Kazakov [this message]
2010-12-09 19:00 ` Warren
2010-12-10  0:11   ` Randy Brukardt
2010-12-10  5:52     ` Shark8
2010-12-10  7:14   ` Simon Wright
2010-12-10  8:34   ` Dmitry A. Kazakov
2010-12-10 10:12     ` AdaMagica
2010-12-10 17:27       ` Robert A Duff
2010-12-11 15:59         ` AdaMagica
2010-12-10 16:11     ` Adam Beneschan
2010-12-10 20:13     ` Warren
2010-12-10 21:30       ` Adam Beneschan
2010-12-10 21:48         ` Simon Wright
2010-12-13 16:21         ` Warren
2010-12-13 19:55           ` Adam Beneschan
2010-12-14 15:40             ` Warren
2010-12-11  0:46       ` Peter C. Chapin
2010-12-11  1:39         ` Adam Beneschan
replies disabled

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