]> granicus.if.org Git - python/commit
Issue #22117: The thread module uses the new _PyTime_t timestamp API
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 28 Mar 2015 02:52:05 +0000 (03:52 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 28 Mar 2015 02:52:05 +0000 (03:52 +0100)
commitf5faad2bf017db9e99845de29420476914f1ef1d
treebfe86d93267dd2c4cc49181a7289437e2ada4b64
parente245231fabb4c97521959e9ae1b45469bfad0d1e
Issue #22117: The thread module uses the new _PyTime_t timestamp API

Add also a new _PyTime_AsMicroseconds() function.

threading.TIMEOUT_MAX is now be smaller: only 292 years instead of 292,271
years on 64-bit system for example. Sorry, your threads will hang a *little
bit* shorter. Call me if you want to ensure that your locks wait longer, I can
share some tricks with you.
Include/pytime.h
Modules/_threadmodule.c
Python/pytime.c