From cb3f2c8f97d38385fb4672d52b18f4bbbf207348 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)" Date: Fri, 9 Sep 2016 12:30:34 -0700 Subject: Add a note about queue not being safe for use from signal handlers. issue14976. --- Doc/library/queue.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index 1cb0935..f803852 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` -- cgit v0.12