[pylucene-dev] simple threading segfault demo

Andi Vajda vajda at osafoundation.org
Mon Mar 19 09:58:21 PST 2007


On Mon, 12 Mar 2007, Ofer Nave wrote:

> class Worker(threading.Thread):
>    def __init__(self, index_dir, worker_id):
>        threading.Thread.__init__(self)
>        self.index_dir = index_dir
>        self.worker_id = worker_id
>        if not os.path.exists(index_dir):
>            os.mkdir(index_dir)

Your thread must be a subclass of PyLucene.PythonThread.

Andi..


More information about the pylucene-dev mailing list