From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6f69b1cf0f02b9ac X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-07 13:56:08 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: How can I avoid Using a Semaphore? (long) Date: Wed, 7 Feb 2001 16:55:13 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 981582967 41700 137.194.161.2 (7 Feb 2001 21:56:07 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 7 Feb 2001 21:56:07 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:4952 Date: 2001-02-07T16:55:13-05:00 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.