Problem with Thread.join()
by Robert Dailey other posts by this author
Aug 13 2007 5:04PM messages near this date
Re: locale doesn' format
|
(sort of) deterministic timing in Python
Hi,
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...
|