MCPcopy
hub / github.com/srixivas/PcapXray / _poll_thread

Method _poll_thread

Source/Module/user_interface.py:445–452  ·  view source on GitHub ↗

Block the caller while driving the Tk event loop until thread finishes.

(self, thread: threading.Thread)

Source from the content-addressed store, hash-verified

443 return t, exc_box
444
445 def _poll_thread(self, thread: threading.Thread) -> None:
446 """Block the caller while driving the Tk event loop until thread finishes."""
447 while thread.is_alive():
448 try:
449 self.base.update()
450 except Exception as exc:
451 log.debug("_poll_thread: update error (ignored): %s", exc)
452 thread.join(timeout=0.05)
453
454 def pcap_analyse(self):
455 if not os.access(self.destination_report.get(), os.W_OK):

Callers 3

_stop_liveMethod · 0.95
pcap_analyseMethod · 0.95
generate_graphMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected