Problem with Thread.join()

James Matthews nytrokiss at gmail.com
Mon Aug 20 16:58:27 CEST 2007


Post some code so we can see the issue! I would say that the issue is where
your function that you are calling isn't exiting!

On 8/20/07, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
>
> En Mon, 13 Aug 2007 20:10:53 -0300, Robert Dailey <rcdailey at gmail.com>
> escribi�:
>
> > I have a class that derives from threading.Thread. To signal the thread
> > to
> > exit its infinite loop, I set an Event. Once the thread checks
> > Event.isSet()
> > and it is true, it proceeds to break out of the loop and exit the
> > function.
> > In the main thread, right after calling Event.set(), I call
> > Thread.join() to
> > wait on the thread to exit. However, if I call Thread.join() the
> > application
> > locks up because for some reason calling Thread.join() prevents the
> > thread
> > from exiting. I don't know why. Any help? Thanks...
>
> Conceptually you're doing it the right way. Post some code demonstrating
> the problem...
>
> --
> Gabriel Genellina
>
> --
> http://mail.python.org/mailman/listinfo/python-list




-- 
http://www.goldwatches.com/
http://www.jewelerslounge.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070820/c1e77856/attachment.html>


More information about the Python-list mailing list