[pylucene-dev] PyLucene thread-safe?
Andi Vajda
vajda at osafoundation.org
Mon Jun 28 10:05:17 PDT 2004
> Thanks. My problem in Zope is that I can not access the thread object when I
> create
> the index. I tried
>
> attachCurrentThread(threading.currentThread()) but this does not seem to work
> since currentThread() returns a dummy thread instance because the worker
> threads
> in Zope are created to the thread module and not through the threading
> module.
> So any idea how to get hold of the thread object?
I don't know much about Zope but I imagine the worker threads are being
created somewhere. That is where the run method of these threads needs to be
wrapped by a call to attachCurrentThread.
Andi..
More information about the pylucene-dev
mailing list