summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-19 11:50:21 +0200
committerGitHub <noreply@github.com>2022-06-19 11:50:21 +0200
commit2664d9aacf25aa18e1753e57f80f345ed9bd31e0 (patch)
tree6e976fb6478eb26a7ca695ae4331ed334ed39e82 /Python/sysmodule.c
parentdba3fa57e26c5b0f7a4bfd3228a9bc109f35b6c8 (diff)
downloadcpython-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