From: "Beard, Frank" <beardf@spawar.navy.mil>
To: "'comp.lang.ada@ada.eu.org'" <comp.lang.ada@ada.eu.org>
Subject: RE: How can I avoid Using a Semaphore? (long)
Date: Wed, 7 Feb 2001 16:55:13 -0500
Date: 2001-02-07T16:55:13-05:00 [thread overview]
Message-ID: <mailman.981582966.9117.comp.lang.ada@ada.eu.org> (raw)
So, according to section 9.5.1, doing I/O during a protected operation
is NOT potentially blocking?
For example, would it be permissible to do the following:
protected body Protected_Something is
procedure Do_Something (status : out Status_Type) is
begin
Ada.Text_Io.Open(file => file,
mode => Ada.Text_Io.IN_FILE,
name => "status_file",
form => "");
Status_Io.Get(file => file,
item => status);
Ada.Text_Io.Close(file);
end Do_Something;
end Protected_Something;
Frank
-----Original Message-----
From: DuckE [mailto:nospam_steved94@home.com]
Sent: Friday, February 02, 2001 10:01 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: How can I avoid Using a Semaphore? (long)
On reviewing 9.5.1 of the RM I see that this is definitely NOT the case. In
9.5.1 the specific operations that are considered potentially blocking are
listed.
next reply other threads:[~2001-02-07 21:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-07 21:55 Beard, Frank [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-02-08 23:42 How can I avoid Using a Semaphore? (long) Beard, Frank
2001-01-13 16:18 DuckE
2001-01-22 16:51 ` mark_lundquist
2001-01-23 6:02 ` DuckE
2001-02-02 22:18 ` Mark Lundquist
2001-02-03 3:01 ` DuckE
2001-02-02 21:38 ` Niklas Holsti
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox