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: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Foreign thread support Date: Mon, 20 Jan 2014 09:26:29 +0000 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="d6dcbed888a91bae80923cc55b286b77"; logging-data="10550"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rZ1APCmAHTxcVp5C+ViRkEh0deUjwhW0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:ZNLhXLYG8IagSOvdQhd1+GApeG0= sha1:ZMYFf8A3wTQDyllkDB+RKCKpOMg= X-Original-Bytes: 1388 Xref: number.nntp.dca.giganews.com comp.lang.ada:184484 Date: 2014-01-20T09:26:29+00:00 List-Id: Sometimes you have Ada code which is called from a non-Ada environment; for example, an interrupt handler, or a callback. If you are using GNAT, then unless you place quite severe restrictions on what the Ada code (and anything it calls) does, you have to link the current thread environment to the GNAT runtime, using GNAT.Register_Thread (on VxWorks 5.5, for instance, this sets up the necessary link in the Task Control Block). Do other compilers have/need similar features?