gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (#123690)
Use a `PyMutex` to avoid the race in mutex initialization. Use relaxed atomics to avoid the data race on reading `_PyOS_ReadlineTState` when checking for re-entrant calls.
S
Sam Gross committed
0c080d7c77d826c1afab7bd6b73f61e714cffcb7
Parent: 8a46a2e
Committed by GitHub <noreply@github.com>
on 9/6/2024, 7:07:08 PM