Re: attach thread hangs

2010-07-16 Thread Andi Vajda
On Sat, 17 Jul 2010, Andi Vajda wrote: On Jul 16, 2010, at 23:14, Darren Govoni wrote: btw. I have a timer thread that watches a message queue and then performs lucene lookups, so every time that timer thread invokes my object, its a new thread. Don't do that. Instead, pool your threads a

Re: attach thread hangs

2010-07-16 Thread Andi Vajda
On Jul 16, 2010, at 23:14, Darren Govoni wrote: btw. I have a timer thread that watches a message queue and then performs lucene lookups, so every time that timer thread invokes my object, its a new thread. Don't do that. Instead, pool your threads and reuse them. Andi.. I tried calling

Re: attach thread hangs

2010-07-16 Thread Andi Vajda
On Jul 16, 2010, at 18:48, Darren Govoni wrote: Hi, I have a situation where I have multiple (4) python objects that use pylucene and initVM's and attach to their own threads. It works fine for a bit, but eventually calls to vm.attachCurrentThread() hangs and never returns across those obj

attach thread hangs

2010-07-16 Thread Darren Govoni
Hi, I have a situation where I have multiple (4) python objects that use pylucene and initVM's and attach to their own threads. It works fine for a bit, but eventually calls to vm.attachCurrentThread() hangs and never returns across those objects - each in a separate thread. I only call getVMEnv