bt2: wrap bt_graph_run_once() (Graph.run_once())
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 4 Aug 2019 05:11:03 +0000 (01:11 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 5 Aug 2019 19:10:13 +0000 (15:10 -0400)
commit8cc0e6eacdc050f30629b99a5c9d2dc4ba4513c3
tree72d533c4d74e6de52dfb73f9a3af258a9d1c6b7c
parent648dab91badf89bda303707b6159d315448b8a16
bt2: wrap bt_graph_run_once() (Graph.run_once())

As opposed to Graph.run() which simply returns `None` when it's finished
running, Graph.run_once() needs a way to indicate that the whole graph
is finished. In that case, the method raises `bt2.Stop`. Otherwise,
Graph.run_once() returns `None`.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I8c5908b7b1a265486534a3ec01c9eb813c2cde7c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1819
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/graph.py
tests/bindings/python/bt2/test_graph.py
This page took 0.024457 seconds and 4 git commands to generate.