◐ Shell
clean mode source ↗

gh-135871: Reload lock internal state while spinning in `PyMutex_LockTimed` by dpdani · Pull Request #146064 · python/cpython

@dpdani

@bedevere-app Bot mentioned this pull request

Mar 17, 2026

@blurb-it

colesbury

Co-authored-by: Sam Gross <colesbury@gmail.com>
Change-Id: I5df04888df81de26a04450a9a1a04d4db5026383

CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request

Mar 24, 2026

@dpdani dpdani deleted the pymutex-spinning-reload branch

March 24, 2026 09:46

clin1234 pushed a commit to clin1234/cpython that referenced this pull request

Apr 16, 2026
…x_LockTimed` (pythongh-146064)

Add atomic loads in the slow path of PyMutex to increase the number
of lock acquisitions per second that threads can make on a shared mutex.

ljfp pushed a commit to ljfp/cpython that referenced this pull request

Apr 25, 2026
…x_LockTimed` (pythongh-146064)

Add atomic loads in the slow path of PyMutex to increase the number
of lock acquisitions per second that threads can make on a shared mutex.