From: Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) Date: Fri, 9 Sep 2016 19:30:34 +0000 (-0700) Subject: Add a note about queue not being safe for use from signal handlers. X-Git-Tag: v3.6.0b1~185^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb3f2c8f97d38385fb4672d52b18f4bbbf207348;p=python Add a note about queue not being safe for use from signal handlers. issue14976. --- 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`