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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c3c4ae45442f569e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!not-for-mail Date: Fri, 29 Apr 2005 15:22:09 +0200 From: Poul-Erik Andreasen User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada.Text_IO and protected objects (Was: [newbie question] tasks and protected types) References: <1114747457.868019.93210@f14g2000cwb.googlegroups.com> <42720DCD.6030304@mailinator.com> <4272260d$0$30463$ba620e4c@news.skynet.be> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42723502$0$156$edfadb0f@dread11.news.tele.dk> Organization: TDC Totalloesninger NNTP-Posting-Host: 80.166.145.174 X-Trace: 1114780930 dread11.news.tele.dk 156 80.166.145.174:62283 X-Complaints-To: abuse@post.tele.dk Xref: g2news1.google.com comp.lang.ada:10819 Date: 2005-04-29T15:22:09+02:00 List-Id: Jacob Sparre Andersen wrote: > Adrien Plisson wrote: > >>Jacob Sparre Andersen wrote: > > >>>If calls to Ada.Text_IO _are_ potentially blocking operations, >>>that means that one has to move the calls to a task. >> >>and what about putting them into an entry of a protected object? > > > I thought entries of protected objects also were "protected actions". > Unfortunately RM 9.5.1 isn't so clear on that question, that I am sure > if that is actually the case or not. > > If entries on protected objects are not "protected actions", then that > is definitely a sensible solution. > > I think I need an explanation of the difference between entries and > procedures of protected objects. Any suggestion of some reading > materials? > http://www.iuma.ulpgc.es/users/jmiranda/gnat-rts/main.htm