comp.lang.ada
 help / color / mirror / Atom feed
From: Ed Falis <falis@verizon.net>
Subject: Re: Tasking, protected objects, Ada 95 RM
Date: Tue, 18 Jul 2006 15:22:32 GMT
Date: 2006-07-18T15:22:32+00:00	[thread overview]
Message-ID: <PM000418DCB63800B1@tilopa.unknown.dom> (raw)
In-Reply-To: 1153235397.700369.134780@35g2000cwc.googlegroups.com

ldb wrote:

> During the Task initilization, they have an "accept" statement from
> the
> main program that will point them to a buffer from which to read data.
> Inside this "accept" statement, they make a call to the buffer.connect
> function.
>
> This, in essence, is an atmoic "accept" statement making a calling to
> a
> protected types "entry" statement. This leads to the following
> alarming
> statement in the ada 95 RM:
>
> From: http://www.grammatech.com/rm95html-1.0/rm9x-09-05-01.html
>> During a protected action, it is a bounded error to invoke an
> operation that is potentially blocking.

An accept statement is not a protected action in the technical jargon of
the RM.  So calling connect from there is not potentially blocking.  Now
if you were to call an entry from within connect, that would be a
different story.

- Ed



  reply	other threads:[~2006-07-18 15:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 15:09 Tasking, protected objects, Ada 95 RM ldb
2006-07-18 15:22 ` Ed Falis [this message]
2006-07-18 15:30   ` Ed Falis
2006-07-18 19:15 ` Georg Bauhaus
2006-07-18 21:12 ` Randy Brukardt
2006-07-19 14:00   ` ldb
  -- strict thread matches above, loose matches on Subject: below --
2006-07-18 16:38 Anh Vo
replies disabled

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