diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-19 11:50:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 11:50:21 +0200 |
commit | 2664d9aacf25aa18e1753e57f80f345ed9bd31e0 (patch) | |
tree | 6e976fb6478eb26a7ca695ae4331ed334ed39e82 /Python/sysmodule.c | |
parent | dba3fa57e26c5b0f7a4bfd3228a9bc109f35b6c8 (diff) | |
download | cpython-git-2664d9aacf25aa18e1753e57f80f345ed9bd31e0.tar.gz |
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 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions