Issue #22117: The thread module uses the new _PyTime_t timestamp API · pythoncapi/cpython@f5faad2 · GitHub
Skip to content

Commit f5faad2

Browse files
committed
Issue python#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.
1 parent e245231 commit f5faad2

3 files changed

Lines changed: 76 additions & 219 deletions

File tree

Include/pytime.h

Lines changed: 6 additions & 18 deletions

Modules/_threadmodule.c

Lines changed: 64 additions & 75 deletions

0 commit comments

Comments
 (0)