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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,94e5dd5646e21259 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Interfacing to C: multithreaded callbacks Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1181678190.757347.67290@x35g2000prf.googlegroups.com> <1181748188.465208.3770@n15g2000prd.googlegroups.com> Date: Wed, 13 Jun 2007 17:55:47 +0200 Message-ID: <4im4a379jh6r$.1k2xm6hilg50t$.dlg@40tude.net> NNTP-Posting-Date: 13 Jun 2007 17:55:19 CEST NNTP-Posting-Host: a6471d88.newsspool2.arcor-online.net X-Trace: DXC=XYYSfP[`HKfUoRk[hk2WalA9EHlD;3Ycb4Fo<]lROoRa8kF On Wed, 13 Jun 2007 08:23:08 -0700, Maciej Sobczak wrote: > On 13 Cze, 10:11, "Dmitry A. Kazakov" > wrote: > >> However, when talking about POSIX targets, I would assume Ada tasks being >> POSIX threads. > > Yes, that should be obvious implementation strategy. It doesn't > automagically solve all problems, though. The threads started by C > library will be "pure virgin threads", without any Ada-related context > information that might be stored in TLS (Thread Local Storage), for > example. At least it will give you a chance to use POSIX synchronization objects when talking with Ada tasks. Just take an Ada OS instead, with POSIX stuff implemented on the top of Ada RTL. (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de