diff options
author | pan324 <103143968+pan324@users.noreply.github.com> | 2023-12-05 08:11:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 08:11:44 (GMT) |
commit | 81ee0260912dc4b55410f3c6ad755b5c4da82f4a (patch) | |
tree | 86941483260eee5229aedcf0a886da424f1b7b75 /Misc | |
parent | 9f92b31339945da55559747c420e170c968e9e2b (diff) | |
download | cpython-81ee0260912dc4b55410f3c6ad755b5c4da82f4a.zip cpython-81ee0260912dc4b55410f3c6ad755b5c4da82f4a.tar.gz cpython-81ee0260912dc4b55410f3c6ad755b5c4da82f4a.tar.bz2 |
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-10-12-18-19-47.gh-issue-82300.P8-O38.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-10-12-18-19-47.gh-issue-82300.P8-O38.rst b/Misc/NEWS.d/next/Library/2023-10-12-18-19-47.gh-issue-82300.P8-O38.rst new file mode 100644 index 0000000..d7e6b22 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-10-12-18-19-47.gh-issue-82300.P8-O38.rst @@ -0,0 +1 @@ +Add ``track`` parameter to :class:`multiprocessing.shared_memory.SharedMemory` that allows using shared memory blocks without having to register with the POSIX resource tracker that automatically releases them upon process exit. |