diff options
author | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org> | 2016-09-09 19:30:34 (GMT) |
---|---|---|
committer | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org> | 2016-09-09 19:30:34 (GMT) |
commit | cb3f2c8f97d38385fb4672d52b18f4bbbf207348 (patch) | |
tree | ce1de8acc226c5f78e28f5118873e5783bf4bf3b | |
parent | 255295f13edb70525aec6c05631eb863de299c9e (diff) | |
download | cpython-cb3f2c8f97d38385fb4672d52b18f4bbbf207348.zip cpython-cb3f2c8f97d38385fb4672d52b18f4bbbf207348.tar.gz cpython-cb3f2c8f97d38385fb4672d52b18f4bbbf207348.tar.bz2 |
Add a note about queue not being safe for use from signal handlers.
issue14976.
-rw-r--r-- | Doc/library/queue.rst | 5 |
1 files changed, 5 insertions, 0 deletions
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` |