]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-82300: Add track parameter to multiprocessing.shared_memory (#110778)
authorpan324 <103143968+pan324@users.noreply.github.com>
Tue, 5 Dec 2023 08:11:44 +0000 (09:11 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 08:11:44 +0000 (00:11 -0800)
commit81ee0260912dc4b55410f3c6ad755b5c4da82f4a
tree86941483260eee5229aedcf0a886da424f1b7b75
parent9f92b31339945da55559747c420e170c968e9e2b
gh-82300: Add track parameter to multiprocessing.shared_memory (#110778)

Add a track parameter to shared memory to allow resource tracking via the side-launched resource tracker process to be disabled on platforms that use it (POSIX).

This allows people who do not want automated cleanup at process exit because they are using the shared memory with processes not participating in Python's resource tracking to use the shared_memory API.

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/multiprocessing.shared_memory.rst
Lib/multiprocessing/shared_memory.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2023-10-12-18-19-47.gh-issue-82300.P8-O38.rst [new file with mode: 0644]