]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-74953: _PyThread_cond_after() uses _PyTime_t (#94056)
authorVictor Stinner <vstinner@python.org>
Tue, 21 Jun 2022 13:45:49 +0000 (15:45 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jun 2022 13:45:49 +0000 (15:45 +0200)
commitc7a79bb036b42f96b7379b95efa643ee27df2168
tree868fc006fd833fde6f1b62f4f5fa60a06dd9bdb7
parent616fa3465d99a262dc8948ff5e00e47fe92eaaba
gh-74953: _PyThread_cond_after() uses _PyTime_t (#94056)

pthread _PyThread_cond_after() implementation now uses the _PyTime_t
type to handle properly overflow: clamp to the maximum value.

Remove MICROSECONDS_TO_TIMESPEC() function.
Python/condvar.h
Python/thread_pthread.h