]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133885: Use locks instead of critical sections for _zstd (gh-134289)
authorEmma Smith <emma@emmatyping.dev>
Fri, 23 May 2025 03:30:10 +0000 (20:30 -0700)
committerGitHub <noreply@github.com>
Fri, 23 May 2025 03:30:10 +0000 (23:30 -0400)
commit8dbc11971974a725dc8a11c0dc65d8f6fcb4d902
treec44a920db4229aa34c70edd06d833ad28225d703
parenta7ed9dfcbe1436361b95a5f9d89a2d1f075e5468
gh-133885: Use locks instead of critical sections for _zstd (gh-134289)

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.
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