]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
The PyCOND_TIMEDWAIT must use microseconds for the timeout argument
authorKristján Valur Jónsson <sweskman@gmail.com>
Thu, 8 May 2014 10:36:27 +0000 (10:36 +0000)
committerKristján Valur Jónsson <sweskman@gmail.com>
Thu, 8 May 2014 10:36:27 +0000 (10:36 +0000)
commit33096fe8296b57c6e634e58af1c632b8e2f5bc05
treeec9946bef242282eaf27805c77afeefac2c66627
parentba74885e0c3b738c75962a6afa2885a025f5239b
The PyCOND_TIMEDWAIT must use microseconds for the timeout argument
in order to have the same resolution as pthreads condition variables.
At the same time, it must be large enough to accept 31 bits of
milliseconds, which is the maximum timeout value in the windows API.
A PY_LONG_LONG of microseconds fullfills both requirements.
This closes issue #20737
Python/condvar.h
Python/thread_nt.h