Issue 7223: Simplify and improve Thread.join() (original) (raw)

Issue7223

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/51472

classification

Title: Simplify and improve Thread.join()
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.2, Python 2.7

process

Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, gregory.p.smith, jyasskin, pitrou
Priority: low Keywords: patch

Created on 2009-10-27 23:30 by pitrou, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
join.patch pitrou,2009-10-27 23:30
Messages (4)
msg94587 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-10-27 23:30
This patch improves and simplifies Thread.join() by making sure that the __bootstrap() method is finished before join() returns. While it does improve the resource deallocation behaviour, it is still enough for solving all refleak detection hazards (see #7222).
msg94589 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-10-27 23:33
(I meant not enough, of course)
msg94590 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-10-27 23:35
This patch relies on ref counting behavior, an unfortunate side-effect for other implementations.
msg94591 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-10-27 23:36
Indeed. Let's consider it closed then.
History
Date User Action Args
2022-04-11 14:56:54 admin set github: 51472
2009-10-27 23:36:40 pitrou set status: open -> closedresolution: rejectedmessages: +
2009-10-27 23:35:45 benjamin.peterson set nosy: + benjamin.petersonmessages: +
2009-10-27 23:33:33 pitrou set messages: +
2009-10-27 23:30:54 pitrou create

Supported by The Python Software Foundation,
Powered by Roundup

Copyright © 1990-2022, Python Software Foundation
Legal Statements