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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5e6817b962ddd73c,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews2.google.com!not-for-mail From: ada95first@yahoo.com (Paul Springer) Newsgroups: comp.lang.ada Subject: Calling Ada code from C++ thread Date: 2 Sep 2004 08:39:50 -0700 Organization: http://groups.google.com Message-ID: <978305c9.0409020739.3f1a2985@posting.google.com> NNTP-Posting-Host: 24.213.139.206 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1094139590 20943 127.0.0.1 (2 Sep 2004 15:39:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 2 Sep 2004 15:39:50 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:3266 Date: 2004-09-02T08:39:50-07:00 List-Id: 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