]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-133885: Use locks instead of critical sections for _zstd (gh-134289) (gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 23 May 2025 10:00:38 +0000 (12:00 +0200)
committerGitHub <noreply@github.com>
Fri, 23 May 2025 10:00:38 +0000 (10:00 +0000)
commit81675941fb51f09b89ba46bce237222a87ea60f6
treed67986719c964c2347cd2e86aee58518e9f5f46b
parent896b745a7a191c144c27893933b8bf57b4fc77a9
[3.14] gh-133885: Use locks instead of critical sections for _zstd (gh-134289) (gh-134560)

Move from using critical sections to locks for the (de)compression methods.
Since the methods allow other threads to run, we should use a lock rather
than a critical section.
(cherry picked from commit 8dbc11971974a725dc8a11c0dc65d8f6fcb4d902)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Lib/test/test_zstd.py
Modules/_zstd/clinic/decompressor.c.h
Modules/_zstd/clinic/zstddict.c.h
Modules/_zstd/compressor.c
Modules/_zstd/decompressor.c
Modules/_zstd/zstddict.c
Modules/_zstd/zstddict.h