File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ primitives like locks.
464464For passing messages one can use :func: `Pipe ` (for a connection between two
465465processes) or a queue (which allows multiple producers and consumers).
466466
467- The :class: `Queue ` and :class: `JoinableQueue ` types are multi-producer,
467+ The :class: `Queue `, :class: ` multiprocessing.queues.SimpleQueue ` and :class: `JoinableQueue ` types are multi-producer,
468468multi-consumer FIFO queues modelled on the :class: `queue.Queue ` class in the
469469standard library. They differ in that :class: `Queue ` lacks the
470470:meth: `~queue.Queue.task_done ` and :meth: `~queue.Queue.join ` methods introduced
@@ -610,6 +610,23 @@ For an example of the usage of queues for interprocess communication see
610610 exits -- see :meth: `join_thread `.
611611
612612
613+ .. class :: multiprocessing.queues.SimpleQueue()
614+
615+ It is a simplified :class: `Queue ` type, very close to a locked :class: `Pipe `.
616+
617+ .. method :: empty()
618+
619+ Return ``True `` if the queue is empty, ``False `` otherwise.
620+
621+ .. method :: get()
622+
623+ Remove and return an item from the queue.
624+
625+ .. method :: put(item)
626+
627+ Put *item * into the queue.
628+
629+
613630.. class :: JoinableQueue([maxsize])
614631
615632 :class: `JoinableQueue `, a :class: `Queue ` subclass, is a queue which
You can’t perform that action at this time.
0 commit comments