gh-135871: Reload lock internal state while spinning in `PyMutex_LockTimed` (gh-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.
D
Daniele Parmeggiani committed
daa159f98b3689ae6a587bfb978b931762f9dbc9
Parent: 821581a
Committed by GitHub <[email protected]>
on 3/23/2026, 8:55:06 PM