An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
71084d 1 diff --git a/Lib/threading.py b/Lib/threading.py
CS 2 index e4c7f35..91b3849 100644
3 --- a/Lib/threading.py
4 +++ b/Lib/threading.py
5 @@ -351,13 +351,14 @@ class _Condition(_Verbose):
6                      gotit = waiter.acquire(0)
7                      if gotit:
8                          break
9 -                    remaining = endtime - _time()
10 +                    remaining = min(endtime - _time(), timeout)
11                      if remaining <= 0:
12                          break
13                      if balancing:
14                          delay = min(delay * 2, remaining, 0.05)
15                      else:
16                          delay = remaining
17 +                        endtime = _time() + remaining
18                      _sleep(delay)
19                  if not gotit:
20                      if __debug__: