comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: tasks, protected types and entries
Date: Sun, 17 Mar 2002 19:46:16 GMT
Date: 2002-03-17T19:46:16+00:00	[thread overview]
Message-ID: <wccvgbvgepj.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: a72hes$15kh$1@ns.felk.cvut.cz

"Sergey Koshcheyev" <serko84@hotmail.com> writes:

> By the way, what is the difference between a procedure X and an "entry X
> when True" in a protected object? I remember that the "entry when True" was
> used once in John Barnes' book, but I couldn't find an explanation of the
> difference.

An entry can requeue; a procedure cannot.  So if you want to do
something unconditionally and then perhaps requeue, you need a "when
True" entry barrier.

- Bob



  reply	other threads:[~2002-03-17 19:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-17 14:50 tasks, protected types and entries chris.danx
2002-03-17 14:55 ` chris.danx
2002-03-17 15:46   ` Jim Rogers
2002-03-17 16:49     ` Sergey Koshcheyev
2002-03-17 19:46       ` Robert A Duff [this message]
2002-03-17 19:44 ` Richard Riehle
2002-03-17 20:06   ` Ehud Lamm
2002-03-17 21:53   ` Pat Rogers
2002-03-18  1:42     ` Jeffrey Carter
2002-03-18  5:14       ` Pat Rogers
2002-03-18  0:36   ` Bo Sanden
2002-03-29  0:10   ` chris.danx
2002-03-18 16:41 ` john mann
replies disabled

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