Home
last modified time | relevance | path

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

/build/make/tools/releasetools/
Dblockimgdiff.py445 def __init__(self, tgt, src=None, threads=None, version=4, argument
447 if threads is None:
448 threads = multiprocessing.cpu_count() // 2
449 if threads == 0:
450 threads = 1
451 self.threads = threads
1338 if self.threads > 1:
1339 logger.info("Computing patches (using %d threads)...", self.threads)
1407 threads = [threading.Thread(target=diff_worker)
1408 for _ in range(self.threads)]
[all …]
Dcommon.py1867 threads = [threading.Thread(target=worker)
1869 for th in threads:
1871 while threads:
1872 threads.pop().join()
1891 b = blockimgdiff.BlockImageDiff(tgt, src, threads=OPTIONS.worker_threads,