comp.lang.ada
 help / color / mirror / Atom feed
* tasks, protected types and entries
@ 2002-03-17 14:50 chris.danx
  2002-03-17 14:55 ` chris.danx
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: chris.danx @ 2002-03-17 14:50 UTC (permalink / raw)


Hi,

What is the difference between an entry and a procedure?  I think the
difference is that a procedure will always execute regardless of any
condition, but that an entry can have a guard to allow/prevent its execution
if a given condition is satisfied.

So for a (protected) queue, the procedure Enqueue (someitem) would run in
any circumstance and the entry Dequeue (an_item: out sometype) would run
only when it is sensible to do so.  i.e. when there are items in the Queue.

Is that correct?  Is it the same for tasks?


Happy St Paddy's Day,
Chris






^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2002-03-29  0:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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