From: john donoghue <donoghue@chariot.net.au>
Subject: Re: object ada, visual c and tasking combined.
Date: Sat, 16 Feb 2002 06:59:38 +1030
Date: 2002-02-16T06:59:38+10:30 [thread overview]
Message-ID: <3C6D6FB2.D305639C@chariot.net.au> (raw)
In-Reply-To: Awcb8.2841$7M6.1167470653@newssvr14.news.prodigy.com
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 ?
next prev parent reply other threads:[~2002-02-15 20:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-15 8:09 object ada, visual c and tasking combined john donoghue
2002-02-15 18:06 ` Stephen Leake
2002-02-15 18:34 ` tmoran
2002-02-15 20:29 ` john donoghue [this message]
2002-02-16 4:14 ` Steve Doiel
2002-02-23 13:36 ` Nick Roberts
2002-02-25 12:05 ` john donoghue
2002-02-25 13:20 ` Frank J. Lhota
2002-02-25 20:10 ` Randy Brukardt
2002-02-27 20:53 ` john donoghue
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox