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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18984>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to