(self, toscans)
| 389 | self.mutex.release() # 解锁 |
| 390 | |
| 391 | def run(self, toscans): |
| 392 | # 多线程执行类 |
| 393 | callback_queue = CallbackQueue(min_threads=20, max_threads=1000) |
| 394 | LogPrinter.info("toscans : %s" % toscans) |
| 395 | for path in toscans: |
| 396 | LogPrinter.info("path: %s" % path) |
| 397 | callback_queue.append(self.__scan_file_callback_, path) |
| 398 | callback_queue.wait_for_all_callbacks_to_be_execute_and_destroy() |
| 399 | return self.issues |
| 400 | |
| 401 | |
| 402 | tool = CheckStyle |