Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b3b3dc commit 87dc4d6Copy full SHA for 87dc4d6
1 file changed
Doc/library/queue.rst
@@ -22,6 +22,8 @@ the first retrieved (operating like a stack). With a priority queue,
22
the entries are kept sorted (using the :mod:`heapq` module) and the
23
lowest valued entry is retrieved first.
24
25
+Internally, the module uses locks to temporarily block competing threads;
26
+however, it is not designed to handle reentrancy within a thread.
27
28
The :mod:`queue` module defines the following classes and exceptions:
29
@@ -186,11 +188,6 @@ Example of how to wait for enqueued tasks to be completed::
186
188
t.join()
187
189
190
-.. note::
-
191
- The :mod:`queue` module is not safe for use from :mod:`signal` handlers as
192
- it uses :mod:`threading` locks.
193
194
.. seealso::
195
196
Class :class:`multiprocessing.Queue`
0 commit comments