diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2013-07-02 12:32:00 +0100 |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2013-07-02 12:32:00 +0100 |
commit | b3c4b98c237359247d3e09d0738d308a456994a5 (patch) | |
tree | bfe8af4c5b59b237f4926b22dc8dfadacca35718 /Doc | |
parent | 8d3795474eb70d246ccd9dae23a784436238ed79 (diff) | |
download | cpython-git-b3c4b98c237359247d3e09d0738d308a456994a5.tar.gz |
Issue #17273: Clarify that pool methods can only be used by parent process.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/multiprocessing.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 6ea1572200..c591cd0710 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -284,6 +284,9 @@ For example:: print(result.get(timeout=1)) # prints "100" unless your computer is *very* slow 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 --------- @@ -1665,6 +1668,9 @@ with the :class:`Pool` class. *initializer* is not ``None`` then each worker process will call ``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 *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 |