diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-19 09:50:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 09:50:21 (GMT) |
commit | 2664d9aacf25aa18e1753e57f80f345ed9bd31e0 (patch) | |
tree | 6e976fb6478eb26a7ca695ae4331ed334ed39e82 /Modules/expat/expat_config.h | |
parent | dba3fa57e26c5b0f7a4bfd3228a9bc109f35b6c8 (diff) | |
download | cpython-2664d9aacf25aa18e1753e57f80f345ed9bd31e0.zip cpython-2664d9aacf25aa18e1753e57f80f345ed9bd31e0.tar.gz cpython-2664d9aacf25aa18e1753e57f80f345ed9bd31e0.tar.bz2 |
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.
Diffstat (limited to 'Modules/expat/expat_config.h')
0 files changed, 0 insertions, 0 deletions