| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Python
Revision: 66275
Author: antoine.pitrou
Date: 06 Sep 2008 19:04:32
Changes:Backport relevant part of r66274 (in issue #874900).
Files:| ... | ...@@ -847,9 +847,12 @@ | |
| 847 | 847 | new_active = {} |
| 848 | 848 | current = current_thread() |
| 849 | 849 | with _active_limbo_lock: |
| 850 | for ident, thread in _active.iteritems(): | |
| 850 | for thread in _active.itervalues(): | |
| 851 | 851 | if thread is current: |
| 852 | # There is only one active thread. | |
| 852 | # There is only one active thread. We reset the ident to | |
| 853 | # its new value since it can have changed. | |
| 854 | ident = _get_ident() | |
| 855 | thread._Thread__ident = ident | |
| 853 | 856 | new_active[ident] = thread |
| 854 | 857 | else: |
| 855 | 858 | # All the others are already stopped. |