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:30:34 -07:00
parent 255295f13e
commit cb3f2c8f97
1 changed files with 5 additions and 0 deletions

View File

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