ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Problem with Thread.join()
by Robert Dailey other posts by this author
Aug 13 2007 5:04PM messages near this date
| (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...

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved