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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: timer_server triggers Task_Termination handler Date: Fri, 22 Apr 2016 08:46:16 +0200 Organization: JSA Research & Innovation Message-ID: <87bn52nnt3.fsf@adaheads.sparre-andersen.dk> References: NNTP-Posting-Host: 109.57.168.133.mobile.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: loke.gir.dk 1461307578 30608 109.57.168.133 (22 Apr 2016 06:46:18 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 22 Apr 2016 06:46:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:cDqOA9PhZQvObDGtzdO+GPVi+DA= Xref: news.eternal-september.org comp.lang.ada:30236 Date: 2016-04-22T08:46:16+02:00 List-Id: Randy Brukardt wrote: > "Per Dalgas Jakobsen" wrote in message > news:nfa9nm$bkc$1@loke.gir.dk... >> Is it correct behaviour when tasks internal to the GNAT run-time causes >> users task_termination handlers to be called? > > Sure, why not? Maybe because you end up having to inspect the run-time library to figure out why your application behaves like it does? Or because it makes the behaviour of your program depend on which (correct) run-time library you compile it with? > And what about tasks in third-party libraries? In my opinion third-party libraries are a different matter from the run-time provided by the compiler. I would definitely expect the handlers to be called for any tasks declared outside the run-time. Greetings, Jacob PS: I agree that the compiler providers should write as much as possible of the run-time library in Ada. -- ... but, following long-established custom, it is Laplace's result that is always called, in the modern litterature, "Bayes' theorem." (Jaynes)