mirror of https://github.com/python/cpython
Add a note about queue not being safe for use from signal handlers.
issue14976.
This commit is contained in:
commit
0d441d7d59
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue