[New-bugs-announce] [issue18984] Remove .stopped Event from Thread internals

Tim Peters report at bugs.python.org
Sun Sep 8 23:46:26 CEST 2013


New submission from Tim Peters:

As discussed in issue 18808, now that we're checking for a tstate lock, the Thread._stopped Event has become an "attractive nuisance".  The attached patch removes it.

This simplifies .join() and .is_alive(), and restores pre-18808 .join(timeout) endcase behavior (i.e., if join returns before the timeout expires, .is_alive() will always be False).

Since this doesn't add any new locks, I hope it won't create more problems with fork tests - but running on Windows I wouldn't know ;-)

----------
assignee: tim.peters
components: Library (Lib)
files: remove_stopped
keywords: needs review, patch
messages: 197325
nosy: pitrou, tim.peters
priority: normal
severity: normal
stage: patch review
status: open
title: Remove .stopped Event from Thread internals
versions: Python 3.4
Added file: http://bugs.python.org/file31690/remove_stopped

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18984>
_______________________________________


More information about the New-bugs-announce mailing list