summaryrefslogtreecommitdiff
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 12:30:34 -0700
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-09-09 12:30:34 -0700
commitcb3f2c8f97d38385fb4672d52b18f4bbbf207348 (patch)
treece1de8acc226c5f78e28f5118873e5783bf4bf3b /Doc/library/queue.rst
parent255295f13edb70525aec6c05631eb863de299c9e (diff)
downloadcpython-git-cb3f2c8f97d38385fb4672d52b18f4bbbf207348.tar.gz
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 1cb0935377..f80385270b 100644
--- a/Doc/library/queue.rst
+++ b/Doc/library/queue.rst
@@ -186,6 +186,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`