This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: CNI namespace
Erm. Ignore the previous message. Fingers slipped. Sorry. :-)
Cedric Berger <cedric@wireless-networks.com> writes:
> class NativeQueue {
> native void send(Packet p);
> native Packet receive();
> }
[...]
> will there be more than one wrapper around Packet?
Each call to "send" or "receive" would result in a different proxy
object being created. So yes, there could be two different threads
both dealing on the same object, but there would be a different proxy
object for each thread that was off in native-land -- in effect, more
than one wrapper around Packet would exist at the same time, each with
a different JNIEnv.
If this doesn't answer your question, let me know.