comp.lang.ada
 help / color / mirror / Atom feed
From: andy_starritt@hotmail.com
Subject: Calling ada code from non Ada threads
Date: 10 Oct 2005 00:32:11 -0700
Date: 2005-10-10T00:32:11-07:00	[thread overview]
Message-ID: <1128929531.815574.275060@g44g2000cwa.googlegroups.com> (raw)

Hi all,

   I'm writing a binding to a shared library written in c. Part
of the API specification allows for a call back procedure
to called later when some event occurs.

   The call back is in a thread created by the shared library,
and this causes a segmentation fault if I try to do anything
'significant' in the Ada code (even a simple Ada.Text_IO.Put_Line is
problematic). If I just copy the
call back procedure parameter data to a package
level variable all is okay.

   Is there any way to let the Ada know and/or be 'happy' with code
being invoked in a non Ada thread?

BtW using Linux Red Hat 9 and RH Enterprise 3.0

Cheers




             reply	other threads:[~2005-10-10  7:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-10  7:32 andy_starritt [this message]
2005-10-10 14:08 ` Calling ada code from non Ada threads Marc A. Criley
2005-10-10 20:38 ` 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