[pylucene-dev] PyLucene thread-safe?
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
> the index. I tried
> attachCurrentThread(threading.currentThread()) but this does not seem to work
> since currentThread() returns a dummy thread instance because the worker
> in Zope are created to the thread module and not through the threading
> 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.
More information about the pylucene-dev