summaryrefslogtreecommitdiffstats
path: root/Python/Python-tokenize.c
diff options
context:
space:
mode:
authorT. Wouters <thomas@python.org>2024-12-23 12:31:33 (GMT)
committerGitHub <noreply@github.com>2024-12-23 12:31:33 (GMT)
commit180d417e9f9456defd4c5b53cae678c318287921 (patch)
treecdcc1e622b3e5a11f61d739dd514dde31048e643 /Python/Python-tokenize.c
parent831b6de6d725c697f2f61fd35c4448cd8a9354ff (diff)
downloadcpython-180d417e9f9456defd4c5b53cae678c318287921.zip
cpython-180d417e9f9456defd4c5b53cae678c318287921.tar.gz
cpython-180d417e9f9456defd4c5b53cae678c318287921.tar.bz2
gh-114203: Optimise simple recursive critical sections (#128126)
Add a fast path to (single-mutex) critical section locking _iff_ the mutex is already held by the currently active, top-most critical section of this thread. This can matter a lot for indirectly recursive critical sections without intervening critical sections.
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions