AttachCurrentThread
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amol_Chitre
Posted On:   Wednesday, April 18, 2001 12:14 AM

Hi,
I am trying to make an upcall from the native C code to a method of an already running server thread (say class A) in the JVM. This requires me to use the AttachCurrentThread function.

Now the java method (say A.mthod1) I am calling is within my already running server thread (A). After my upcalls transitions me from C to Java, I suddenly lose all the members of the existing server thread.

I would like to know if this is possible ?? After the upcall, what does the newly attached thread run as.. or more specifically, what is the class of the newly attached thread?

Thanks,
Amol.

Re: AttachCurrentThread

Posted By:   Amol_Chitre  
Posted On:   Wednesday, April 18, 2001 05:13 PM

I was looking more into this and I am wondering if this has to do with class loaders. The existing thread being launched by a classloader which is not the primordial class loader. But the JNI calls always use the primordial java class loader. Am I correct?
About | Sitemap | Contact