Home
last modified time | relevance | path

Searched refs:maxtasks (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/multiprocessing/
Dpool.py88 def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None): argument
89 assert maxtasks is None or (type(maxtasks) in (int, long) and maxtasks > 0)
100 while maxtasks is None or (maxtasks and completed < maxtasks):
/external/python/cpython3/Lib/multiprocessing/
Dpool.py97 def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, argument
99 if (maxtasks is not None) and not (isinstance(maxtasks, int)
100 and maxtasks >= 1):
101 raise AssertionError("Maxtasks {!r} is not valid".format(maxtasks))
112 while maxtasks is None or (maxtasks and completed < maxtasks):