gh-74953: Reformat PyThread_acquire_lock_timed() (#93947)
Reformat the pthread implementation of PyThread_acquire_lock_timed() using a mutex and a conditioinal variable. * Add goto to avoid multiple indentation levels and exit quickly * Use "while(1)" and make the control flow more obvious. * PEP 7: Add braces around if blocks.
V
Victor Stinner committed
2664d9aacf25aa18e1753e57f80f345ed9bd31e0
Parent: dba3fa5
Committed by GitHub <noreply@github.com>
on 6/19/2022, 9:50:21 AM