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,FREEMAIL_FROM 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!news3.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: [newbie question] tasks and protected types Date: Fri, 29 Apr 2005 14:54:17 +0200 Message-ID: <42722E79.4080603@mailinator.com> References: <1114747457.868019.93210@f14g2000cwb.googlegroups.com> <42720DCD.6030304@mailinator.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net BwQD5373cdxz/nuBorNpfg65HgiIfePtR/VDCV+NtNbLsvz0M= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:10817 Date: 2005-04-29T14:54:17+02:00 List-Id: 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. But from a logical > point of view, using a protected object seems like the right way to do > it. True. In fact I was doing just the same when I was warned for the first time about this. Later I think it was Mr. Dewar who pointed that Gnat Text_IO is thread safe, but don't mark my words. Kind regards, A. Mosteo.