Add a note about queue not being safe for use from signal handlers.

issue14976.
This commit is contained in:
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) 2016-09-09 12:31:05 -07:00
commit 0d441d7d59
1 changed files with 5 additions and 0 deletions

View File

@ -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`