bt2: wrap bt_graph_run_once() (Graph.run_once())
[babeltrace.git] / src / bindings / python / bt2 / bt2 / graph.py
index b8cdb1f4f9653682baa0830629206b2c68904d24..6c75d52b843d1de01911b07632bc7d2e849971bb 100644 (file)
@@ -175,6 +175,10 @@ class Graph(object._SharedObject):
 
         return utils._ListenerHandle(listener_ids, self)
 
+    def run_once(self):
+        status = native_bt.graph_run_once(self._ptr)
+        utils._handle_func_status(status, 'graph object could not run once')
+
     def run(self):
         status = native_bt.graph_run(self._ptr)
 
This page took 0.02305 seconds and 4 git commands to generate.