Searched refs:threads (Results 1 – 2 of 2) sorted by relevance
445 def __init__(self, tgt, src=None, threads=None, version=4, argument447 if threads is None:448 threads = multiprocessing.cpu_count() // 2449 if threads == 0:450 threads = 1451 self.threads = threads1338 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 …]
1867 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,