MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / sync_compile_file

Method sync_compile_file

server.py:327–338  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 #

Calls 2

reinit_compile_infoMethod · 0.95
notify_target_changesMethod · 0.95

Tested by

no test coverage detected