update to newest compile info to main thread NOTE: called by observe thread, and block main thread, to ensure when exit, all thread is in the runloop and no middle state.
(self, before=None)
| 325 | self.locking_compile_file = True |
| 326 | |
| 327 | def sync_compile_file(self, before=None): |
| 328 | """update to newest compile info to main thread |
| 329 | |
| 330 | NOTE: called by observe thread, and block main thread, |
| 331 | to ensure when exit, all thread is in the runloop and no middle state. |
| 332 | """ |
| 333 | with mainlock: |
| 334 | if before: |
| 335 | before() |
| 336 | self.reinit_compile_info() |
| 337 | |
| 338 | self.notify_target_changes() |
| 339 | |
| 340 | def notify_target_changes(self): |
| 341 | # TODO: increment diff change and notify # |
no test coverage detected