SIGN IN SIGN UP

[3.14] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872) (gh-135946)

The free threading build could spin unnecessarily on `_Py_yield()` if the initial
compare and swap failed.
(cherry picked from commit cbfaf41caf135b8598a560854cd59e992a2ccfed)

Co-authored-by: Joseph Tibbertsma <josephtibbertsma@gmail.com>
M
Miss Islington (bot) committed
80fc62f8af957fe77c8bcf7936a9b2df920671e3
Parent: df1c124
Committed by GitHub <noreply@github.com> on 6/25/2025, 5:07:07 PM