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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a046ce7f5ee1fa51 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-02 02:14:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: new_line in a put_line Date: Mon, 02 Dec 2002 11:14:30 +0100 Message-ID: References: NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1038824071 28277475 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:31340 Date: 2002-12-02T11:14:30+01:00 List-Id: On Mon, 2 Dec 2002 16:06:58 +1030, "Vlad" wrote: >Is there a way of prepending a new_line to a put_line. >The reason I need this is that I have multiple tasks outputing to a\ >single file. Some of them use Text_IO.Put rather then Text_IO.Put_Line. >And because of this, some of these outputs get written on the same line >as my outputs. Concurrent access to Text_IO might be non-portable [bounded error?]. There are two better possibilities to do it: 1. Use a protected object (to implement mutex, but no I/O from protected operations!) 2. Use a task that does all I/O (i.e. a monitor) --- Regards, Dmitry Kazakov www.dmitry-kazakov.de