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=-0.8 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,63e22b26ee616013,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.204.149.210 with SMTP id u18mr520165bkv.1.1339710234887; Thu, 14 Jun 2012 14:43:54 -0700 (PDT) Path: e27ni48804bkw.0!nntp.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!nuzba.szn.dk!pnx.dk!news.stack.nl!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Text_IO - thread safe? Date: Wed, 13 Jun 2012 23:58:13 +0200 Organization: Ada @ Home Message-ID: References: <3f81d79e-796f-4399-9fa0-d4f6e71d6d9e@googlegroups.com> NNTP-Posting-Host: uTPxqRaRRvkKn+mV+b6EbA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.00 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-06-13T23:58:13+02:00 List-Id: Le Wed, 13 Jun 2012 22:41:11 +0200, awdorrin a =C3=A9= crit: > I have a strange, legacy application that I am working with. > The main starts in a C application which launches several POSIX thread= s. > Some of these threads are C and some are Ada. > > Within one of the Ada modules, there is an array of records being = > sorted, while the other threads are polling a common module, before = > proceeding. > > In the 'rendezvous' routine, there is a Text_IO.Put_Line() that prints= = > out the current thread id and what thread it thinks it is waiting for.= > > ie: > > > > > > The thing is, during this while loop, the Seems some characters were lost while posting the message. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity