Problem with Thread.join()

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Aug 20 04:05:48 EDT 2007


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




More information about the Python-list mailing list