]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41710: Add private _PyDeadline_Get() function (GH-28674)
authorVictor Stinner <vstinner@python.org>
Fri, 1 Oct 2021 11:29:25 +0000 (13:29 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 11:29:25 +0000 (13:29 +0200)
commit833fdf126c8fe77fd17e8a8ffbc5c571b3bf64bd
tree7e4ed574b7cfb30c0ebb7585061134fee1b1f8ae
parent54957f16a63ecb6b15f77b01fa7c55ada892604a
bpo-41710: Add private _PyDeadline_Get() function (GH-28674)

Add a private C API for deadlines: add _PyDeadline_Init() and
_PyDeadline_Get() functions.

* Add _PyTime_Add() and _PyTime_Mul() functions which compute t1+t2
  and t1*t2 and clamp the result on overflow.
* _PyTime_MulDiv() now uses _PyTime_Add() and _PyTime_Mul().
Include/cpython/pytime.h
Modules/_queuemodule.c
Modules/_ssl.c
Modules/_threadmodule.c
Modules/clinic/_queuemodule.c.h
Modules/selectmodule.c
Modules/signalmodule.c
Modules/socketmodule.c
Python/pytime.c
Python/thread_nt.h
Python/thread_pthread.h