Searched refs:threads (Results 1 – 2 of 2) sorted by relevance
241 def __init__(self, tgt, src=None, threads=None, version=4, argument243 if threads is None:244 threads = multiprocessing.cpu_count() // 2245 if threads == 0:246 threads = 1247 self.threads = threads1134 if self.threads > 1:1135 logger.info("Computing patches (using %d threads)...", self.threads)1203 threads = [threading.Thread(target=diff_worker)1204 for _ in range(self.threads)][all …]
2670 threads = [threading.Thread(target=worker)2672 for th in threads:2674 while threads:2675 threads.pop().join()2694 b = BlockImageDiff(tgt, src, threads=OPTIONS.worker_threads,