comp.lang.ada
 help / color / mirror / Atom feed
* Calling Ada code from C++ thread
@ 2004-09-02 15:39 Paul Springer
  0 siblings, 0 replies; only message in thread
From: Paul Springer @ 2004-09-02 15:39 UTC (permalink / raw)


Hello CLA- 

Could someone please post a successful example of calling Ada code
from a C++ thread using GNAT's __gnat_create_thread function? I need
to call Ada code from a C++ thread and the Ada code contains protected
objects etc. that will require an Ada TCB for the C++ thread. GNAT
used to have a handy procedure __gnat_register_thread() that has
apparently been removed from current editions of GNAT. It looks like
you now have to create your thread using GNAT's create_thread function
but I can't get it to work. I keep getting "raised PROGRAM_ERROR: Some
tasks have not been elaborated". How is one supposed to use this
feature?

Thanks!
-Paul



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-02 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-02 15:39 Calling Ada code from C++ thread Paul Springer

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