On Wed, 14 Nov 2007, Andi Vajda wrote:


On Wed, 14 Nov 2007, Bill Janssen wrote:

Is it possible to "attach" a thread to the Java VM from another Python thread?

That's the purpose of attachCurrentThread(). You create a thread in python, then you want to call into the VM from that thread. That thread has to call attachCurrentThread() first. This never worked in the old PyLucene but works well in the new one.

If you meant to ask if there was another API to attach _another_ thread to the VM from a given thread, the answer seems to be 'no'.

The JNI API attachCurrentThread() is the one API for this and it's meant to attach the currently running thread to the VM.

Andi..

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to