summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/_thread.rst4
-rw-r--r--Doc/library/threading.rst3
-rw-r--r--Doc/whatsnew/3.2.rst6
3 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/_thread.rst b/Doc/library/_thread.rst
index c087c75..369e9cd 100644
--- a/Doc/library/_thread.rst
+++ b/Doc/library/_thread.rst
@@ -137,6 +137,10 @@ Lock objects have the following methods:
.. versionchanged:: 3.2
The *timeout* parameter is new.
+ .. versionchanged:: 3.2
+ Lock acquires can now be interrupted by signals on POSIX.
+
+
.. method:: lock.release()
Releases the lock. The lock must have been acquired earlier, but not
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 282d705..371ac90 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -408,6 +408,9 @@ All methods are executed atomically.
.. versionchanged:: 3.2
The *timeout* parameter is new.
+ .. versionchanged:: 3.2
+ Lock acquires can now be interrupted by signals on POSIX.
+
.. method:: Lock.release()
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index ed932ad..e3a92d1 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -1212,6 +1212,12 @@ Multi-threading
* Similarly, :meth:`threading.Semaphore.acquire` also gained a *timeout*
argument. (Contributed by Torsten Landschoff; :issue:`850728`.)
+* Regular and recursive lock acquisitions can now be interrupted by signals on
+ platforms using pthreads. This means that Python programs that deadlock while
+ acquiring locks can be successfully killed by repeatedly sending SIGINT to the
+ process (ie, by pressing Ctl+C in most shells).
+ (Contributed by Reid Kleckner; :issue:`8844`.)
+
Optimizations
=============