[issue20737] 3.3 _thread lock.acquire() timeout and threading.Event().wait() do not wake for certain values on Windows

Kristján Valur Jónsson report at bugs.python.org
Wed May 7 17:15:06 CEST 2014


Kristján Valur Jónsson added the comment:

Tim, how about changing the variable to "unsigned long"?  I'd like the signature of the function to be the same for all platforms.

This will change the code and allow waits for up to 4000 seconds.

There is still an overflow problem present, though.+

David, in general the maximum wait times of these primitives are platform specific.  If you don't want any ceiling, then we would have to add code all over the place (in C) to do looping timeouts.  Not sure which is better, to do it in c, or to accept in python that waits may timeout earlier than specified.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20737>
_______________________________________


More information about the Python-bugs-list mailing list