diff options
author | Jesse Noller <jnoller@gmail.com> | 2010-01-27 03:05:57 (GMT) |
---|---|---|
committer | Jesse Noller <jnoller@gmail.com> | 2010-01-27 03:05:57 (GMT) |
commit | 654ade3e6afa2527d1f642be28d69e219bd58b71 (patch) | |
tree | 9f540e75bef18a74b76fa72eb7f4b04250ebd417 /Lib/multiprocessing/__init__.py | |
parent | 2deb5c758adc4a9a55dae93ecaad5af43c344591 (diff) | |
download | cpython-654ade3e6afa2527d1f642be28d69e219bd58b71.zip cpython-654ade3e6afa2527d1f642be28d69e219bd58b71.tar.gz cpython-654ade3e6afa2527d1f642be28d69e219bd58b71.tar.bz2 |
Issue #6963: Added maxtasksperchild argument to multiprocessing.Pool
Diffstat (limited to 'Lib/multiprocessing/__init__.py')
-rw-r--r-- | Lib/multiprocessing/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/__init__.py b/Lib/multiprocessing/__init__.py index 4fb0bd0..0031a5e 100644 --- a/Lib/multiprocessing/__init__.py +++ b/Lib/multiprocessing/__init__.py @@ -219,12 +219,12 @@ def JoinableQueue(maxsize=0): from multiprocessing.queues import JoinableQueue return JoinableQueue(maxsize) -def Pool(processes=None, initializer=None, initargs=()): +def Pool(processes=None, initializer=None, initargs=(), maxtasksperchild=None): ''' Returns a process pool object ''' from multiprocessing.pool import Pool - return Pool(processes, initializer, initargs) + return Pool(processes, initializer, initargs, maxtasksperchild) def RawValue(typecode_or_type, *args): ''' |