MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / layout_and_wait

Method layout_and_wait

python/flowgraph.py:789–802  ·  view source on GitHub ↗

``layout_and_wait`` starts rendering a graph for display, and waits for the graph to be ready to display. After this function returns, each node will contain coordinates and extents that can be used to render a graph with minimum additional computation. Do not use this API on the UI thread

(self)

Source from the content-addressed store, hash-verified

787 self._wait_cond.release()
788
789 def layout_and_wait(self):
790 """
791 ``layout_and_wait`` starts rendering a graph for display, and waits for the graph to be ready to
792 display. After this function returns, each node will contain coordinates and extents that can be
793 used to render a graph with minimum additional computation.
794
795 Do not use this API on the UI thread (use :func:`layout` with a callback instead).
796 """
797 self._wait_cond = threading.Lock()
798 self._wait_cond.acquire()
799 _ = self.layout(self._wait_complete)
800
801 self._wait_cond.acquire()
802 self._wait_cond.release()
803
804 def get_nodes_in_region(self, left, top, right, bottom):
805 count = ctypes.c_ulonglong()

Callers 1

render_svgFunction · 0.80

Calls 3

layoutMethod · 0.95
acquireMethod · 0.80
releaseMethod · 0.80

Tested by

no test coverage detected