Files
cpython/Include
Victor Stinner 850a18e03e bpo-30768: Recompute timeout on interrupted lock (GH-4103)
Fix the pthread+semaphore implementation of
PyThread_acquire_lock_timed() when called with timeout > 0 and
intr_flag=0: recompute the timeout if sem_timedwait() is interrupted
by a signal (EINTR).

See also the PEP 475.

The pthread implementation of PyThread_acquire_lock() now fails with
a fatal error if the timeout is larger than PY_TIMEOUT_MAX, as done
in the Windows implementation.

The check prevents any risk of overflow in PyThread_acquire_lock().

Add also PY_DWORD_MAX constant.
2017-10-24 16:53:32 -07:00
..
2017-08-03 09:00:59 +03:00
2016-01-26 00:40:57 +01:00
2016-09-09 12:36:44 -07:00
2016-09-18 18:00:25 -07:00
2015-03-21 09:25:53 +02:00
2014-10-10 11:55:41 +02:00
2017-10-17 02:10:44 -04:00
2017-09-29 15:53:19 -07:00
2017-09-29 15:53:19 -07:00
2016-09-19 22:16:36 -07:00
2016-08-20 08:03:06 +00:00
2017-09-14 18:13:16 -07:00