(self, file_paths)
| 162 | self.mutex.release() # 解锁 |
| 163 | |
| 164 | def run(self, file_paths): |
| 165 | callback_queue = CallbackQueue(min_threads=20, max_threads=1000) |
| 166 | for path in file_paths: |
| 167 | callback_queue.append(self.__scan_file_callback__, path) |
| 168 | callback_queue.wait_for_all_callbacks_to_be_execute_and_destroy() |
| 169 | return self.issues |
| 170 | |
| 171 | |
| 172 | class Cpplint(CodeLintModel): |