This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: CNI threads and garbage collection on FC4
On Fri, 2005-08-26 at 16:02 -0700, Andi Vajda wrote:
> Sorry, I should have been clearer. You cannot create a thread on your own, the
> thread *must* be created by Java. By after the fact, I mean creating a thread
> on your own, in C for example, and then hoping to use that thread from Java.
Hmm, well my program is a C++ program. So the main function must be C,
not java. I am only using CNI for a small piece of code that sends
output over the network as java objects so it can be processed by a GUI
written in java.
I think I can rearrange this code so that any new threads are created in
java. But that would still require at least one java object to be
created by the main thread in C, and that java object can take care of
creating the other threads. Is that at least supported? Or are you
saying the example program in the Invocation section of the manual is
not even supported and the invocation interface is not usable yet?
So far this code has been working in most versions of GCC so it seems
like something must be supported.
Ryan