summaryrefslogtreecommitdiffstats
path: root/Doc/library/queue.rst
diff options
context:
space:
mode:
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-09-09 19:31:05 (GMT)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-09-09 19:31:05 (GMT)
commit0d441d7d59b28f44ebd32eebdba4395d6177d775 (patch)
tree5c327bbeb7a4149ae1257fa55bee666a4db1e507 /Doc/library/queue.rst
parentf9b760f48ae2bd32ac347fe805b078a16037afee (diff)
parentcb3f2c8f97d38385fb4672d52b18f4bbbf207348 (diff)
downloadcpython-0d441d7d59b28f44ebd32eebdba4395d6177d775.zip
cpython-0d441d7d59b28f44ebd32eebdba4395d6177d775.tar.gz
cpython-0d441d7d59b28f44ebd32eebdba4395d6177d775.tar.bz2
Add a note about queue not being safe for use from signal handlers.
issue14976.
Diffstat (limited to 'Doc/library/queue.rst')
-rw-r--r--Doc/library/queue.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst
index e3eaa3f..c7dfc35 100644
--- a/Doc/library/queue.rst
+++ b/Doc/library/queue.rst
@@ -189,6 +189,11 @@ Example of how to wait for enqueued tasks to be completed::
t.join()
+.. note::
+
+ The :mod:`queue` module is not safe for use from :mod:`signal` handlers as
+ it uses :mod:`threading` locks.
+
.. seealso::
Class :class:`multiprocessing.Queue`