Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5cb522cb
Commit
5cb522cb
authored
Feb 15, 2012
by
Sandro Tosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #11836: document multiprocessing.queues.SimpleQueue
parent
23357eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
Doc/library/multiprocessing.rst
Doc/library/multiprocessing.rst
+18
-1
No files found.
Doc/library/multiprocessing.rst
View file @
5cb522cb
...
...
@@ -464,7 +464,7 @@ primitives like locks.
For passing messages one can use :func:`Pipe` (for a connection between two
processes) or a queue (which allows multiple producers and consumers).
The :class:`Queue` and :class:`JoinableQueue` types are multi-producer,
The :class:`Queue`
, :class:`multiprocessing.queues.SimpleQueue`
and :class:`JoinableQueue` types are multi-producer,
multi-consumer FIFO queues modelled on the :class:`queue.Queue` class in the
standard library. They differ in that :class:`Queue` lacks the
: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
exits
--
see
:
meth
:`
join_thread
`.
..
class
::
multiprocessing
.
queues
.
SimpleQueue
()
It
is
a
simplified
:
class
:`
Queue
`
type
,
very
close
to
a
locked
:
class
:`
Pipe
`.
..
method
::
empty
()
Return
``
True
``
if
the
queue
is
empty
,
``
False
``
otherwise
.
..
method
::
get
()
Remove
and
return
an
item
from
the
queue
.
..
method
::
put
(
item
)
Put
*
item
*
into
the
queue
.
..
class
::
JoinableQueue
([
maxsize
])
:
class
:`
JoinableQueue
`,
a
:
class
:`
Queue
`
subclass
,
is
a
queue
which
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment