Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/multiprocessing/
Dpool.py93 def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, argument
95 if (maxtasks is not None) and not (isinstance(maxtasks, int)
96 and maxtasks >= 1):
97 raise AssertionError("Maxtasks {!r} is not valid".format(maxtasks))
108 while maxtasks is None or (maxtasks and completed < maxtasks):
/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):