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
b3c4b98c
Commit
b3c4b98c
authored
Jul 02, 2013
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17273: Clarify that pool methods can only be used by parent process.
parent
8d379547
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Doc/library/multiprocessing.rst
Doc/library/multiprocessing.rst
+6
-0
No files found.
Doc/library/multiprocessing.rst
View file @
b3c4b98c
...
@@ -284,6 +284,9 @@ For example::
...
@@ -284,6 +284,9 @@ For example::
print(result.get(timeout=1)) # prints "100" unless your computer is *very* slow
print(result.get(timeout=1)) # prints "100" unless your computer is *very* slow
print(pool.map(f, range(10))) # prints "[0, 1, 4,..., 81]"
print(pool.map(f, range(10))) # prints "[0, 1, 4,..., 81]"
Note that the methods of a pool should only ever be used by the
process which created it.
Reference
Reference
---------
---------
...
@@ -1665,6 +1668,9 @@ with the :class:`Pool` class.
...
@@ -1665,6 +1668,9 @@ with the :class:`Pool` class.
*
initializer
*
is
not
``
None
``
then
each
worker
process
will
call
*
initializer
*
is
not
``
None
``
then
each
worker
process
will
call
``
initializer
(*
initargs
)``
when
it
starts
.
``
initializer
(*
initargs
)``
when
it
starts
.
Note
that
the
methods
of
the
pool
object
should
only
be
called
by
the
process
which
created
the
pool
.
..
versionadded
::
3.2
..
versionadded
::
3.2
*
maxtasksperchild
*
is
the
number
of
tasks
a
worker
process
can
complete
*
maxtasksperchild
*
is
the
number
of
tasks
a
worker
process
can
complete
before
it
will
exit
and
be
replaced
with
a
fresh
worker
process
,
to
enable
before
it
will
exit
and
be
replaced
with
a
fresh
worker
process
,
to
enable
...
...
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