comp.lang.ada
 help / color / mirror / Atom feed
From: "Sergey Koshcheyev" <serko84@hotmail.com>
Subject: Re: tasks, protected types and entries
Date: Sun, 17 Mar 2002 17:49:36 +0100
Date: 2002-03-17T17:49:36+01:00	[thread overview]
Message-ID: <a72hes$15kh$1@ns.felk.cvut.cz> (raw)
In-Reply-To: 3C94BA62.3050102@worldnet.att.net

"Jim Rogers" <jimmaureenrogers@worldnet.att.net> wrote in message
news:3C94BA62.3050102@worldnet.att.net...
> To quote from "Ada as a Second Language" page 860:
>
> "A guard is a construct of the form
>     when condition =>
> that may precede some or all the alternatives of a selective accept.
> A guard has the same form as a barrier in a protected-type entry
> body (..) and plays a similar role."
>
> In short, yes, an entry barrier on a protected object does limit
> access to the protected object. A guard on a task's selective
> accept provides conditions for completion of a rendezvous.

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.

Sergey.





  reply	other threads:[~2002-03-17 16:49 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 [this message]
2002-03-17 19:46       ` Robert A Duff
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