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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba7b74d2699f2def X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-21 14:48:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!intgwlon.nntp.telstra.net!news.telstra.net!vicpull1.telstra.net!not-for-mail Message-ID: <3C6D6FB2.D305639C@chariot.net.au> From: john donoghue X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: object ada, visual c and tasking combined. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Chariot Internet - http://www.chariot.net.au Date: Sat, 16 Feb 2002 06:59:38 +1030 NNTP-Posting-Host: 203.87.95.150 X-Complaints-To: abuse@telstra.net X-Trace: vicpull1.telstra.net 1014331628 203.87.95.150 (Fri, 22 Feb 2002 09:47:08 EST) NNTP-Posting-Date: Fri, 22 Feb 2002 09:47:08 EST Xref: archiver1.google.com comp.lang.ada:20228 Date: 2002-02-16T06:59:38+10:30 List-Id: tmoran@acm.org wrote: > >I have not done this, but would bet you cannot communicate between C++ > >(actually native Win32) threads and Ada tasks by simply calling > >functions. > Functions, as in sqrt, are not thread-specific. Subprograms that > manipulate a thread's data clearly do require access to the correct > thread's data. At the moment all the function on the Ada side does is something like type c_data_type is array(0..8) of Interfaces.C.Char; function ADA_Func( data: c_data_type ) return Interfaces.C.Int is begin text_io.put_line("Here we are :) "); return 0; end ADA_Func; The data being passed in is from a a function calll in the thread in the C dll code, so really it shouldnt be much different from the thread calling a normal operation ?