mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
gh-110850: Replace private _PyTime_MAX with public PyTime_MAX (#115751)
Remove references to the old names _PyTime_MIN and _PyTime_MAX, now that PyTime_MIN and PyTime_MAX are public. Replace also _PyTime_MIN with PyTime_MIN.
This commit is contained in:
parent
1235e84276
commit
77430b6a32
3 changed files with 4 additions and 8 deletions
|
@ -486,9 +486,9 @@ PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds,
|
|||
if (microseconds >= 0) {
|
||||
// bpo-41710: PyThread_acquire_lock_timed() cannot report timeout
|
||||
// overflow to the caller, so clamp the timeout to
|
||||
// [_PyTime_MIN, _PyTime_MAX].
|
||||
// [PyTime_MIN, PyTime_MAX].
|
||||
//
|
||||
// _PyTime_MAX nanoseconds is around 292.3 years.
|
||||
// PyTime_MAX nanoseconds is around 292.3 years.
|
||||
//
|
||||
// _thread.Lock.acquire() and _thread.RLock.acquire() raise an
|
||||
// OverflowError if microseconds is greater than PY_TIMEOUT_MAX.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue