comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Interfacing to C: multithreaded callbacks
Date: Wed, 13 Jun 2007 17:55:47 +0200
Date: 2007-06-13T17:55:19+02:00	[thread overview]
Message-ID: <4im4a379jh6r$.1k2xm6hilg50t$.dlg@40tude.net> (raw)
In-Reply-To: 1181748188.465208.3770@n15g2000prd.googlegroups.com

On Wed, 13 Jun 2007 08:23:08 -0700, Maciej Sobczak wrote:

> On 13 Cze, 10:11, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
> 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



  reply	other threads:[~2007-06-13 15:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-12 19:56 Interfacing to C: multithreaded callbacks Maciej Sobczak
2007-06-13  8:11 ` Dmitry A. Kazakov
2007-06-13 15:23   ` Maciej Sobczak
2007-06-13 15:55     ` Dmitry A. Kazakov [this message]
2007-06-13 19:57 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox