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,534dd301375921ac X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.190.104 with SMTP id gp8mr575882pbc.4.1340305283380; Thu, 21 Jun 2012 12:01:23 -0700 (PDT) MIME-Version: 1.0 Path: l9ni4174pbj.0!nntp.google.com!news2.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!newsfeed.x-privat.org!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Is Text_IO.Put_Line() thread-safe? Date: Thu, 21 Jun 2012 14:01:16 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <93201f1a-d668-485e-83b4-492bc283f36e@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1340305280 4096 69.95.181.76 (21 Jun 2012 19:01:20 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 21 Jun 2012 19:01:20 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Date: 2012-06-21T14:01:16-05:00 List-Id: "Robert A Duff" wrote in message news:wccy5npwxmh.fsf@shell01.TheWorld.com... > "J-P. Rosen" writes: > >> Asynchronous raising of exceptions was in preliminary Ada, the issue was >> studied, and removed for Ada 83. > > Not really. It was renamed to be "abort". The semantics of > "abort" in Ada 83 are essentially the same as the semantics > of T'Failure in preliminary Ada. > > In all Ada implementations I have worked on (which is a lot), > abort is implemented internally via a special exception that > is invisible to user code. Really? No wonder we spent so much time on "abort"! :-) There are no exceptions in our tasking implementation. There is a special entry that takes an exception_occurrence that gets called in the exception handler of a rendezvous (and all rendezvous have such a handler for all exception, added by the compiler if necessary); that's used to generate the needed replication of the exception. Abort is handled by a lot of code implementing the "abnormal" state; some of it shares the mechanism for finalizating a task upon completion. I don't know what happens if an exception is raised in the "abnormal" state, I wouldn't expect it to be special. Randy.