Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

r66275 - python/trunk/Lib/threading.py

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Sep 6, 2008, 4:04 PM

Post #1 of 1 (47 views)
Permalink
r66275 - python/trunk/Lib/threading.py

Author: antoine.pitrou
Date: Sun Sep 7 01:04:32 2008
New Revision: 66275

Log:
Backport relevant part of r66274 (in issue #874900).



Modified:
python/trunk/Lib/threading.py

Modified: python/trunk/Lib/threading.py
==============================================================================
--- python/trunk/Lib/threading.py (original)
+++ python/trunk/Lib/threading.py Sun Sep 7 01:04:32 2008
@@ -847,9 +847,12 @@
new_active = {}
current = current_thread()
with _active_limbo_lock:
- for ident, thread in _active.iteritems():
+ for thread in _active.itervalues():
if thread is current:
- # There is only one active thread.
+ # There is only one active thread. We reset the ident to
+ # its new value since it can have changed.
+ ident = _get_ident()
+ thread._Thread__ident = ident
new_active[ident] = thread
else:
# All the others are already stopped.
_______________________________________________
Python-checkins mailing list
Python-checkins[at]python.org
http://mail.python.org/mailman/listinfo/python-checkins

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.