X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fgraph.py;fp=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fgraph.py;h=9d5ba3aad42810979f7053f356d6ff3506ed6c65;hb=c513d2401e36d61f007fee2c8cc12c306fdd6a3c;hp=a3926e5951ff14df902f47c5b5203281bad27cbd;hpb=f3d6b4c2f7592fde9ff770989b25bacaa4820dc8;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/graph.py b/src/bindings/python/bt2/bt2/graph.py index a3926e59..9d5ba3aa 100644 --- a/src/bindings/python/bt2/bt2/graph.py +++ b/src/bindings/python/bt2/bt2/graph.py @@ -159,5 +159,7 @@ class Graph(object._SharedObject): utils._check_type(interrupter, bt2_interrupter.Interrupter) native_bt.graph_add_interrupter(self._ptr, interrupter._ptr) - def interrupt(self): - native_bt.graph_interrupt(self._ptr) + @property + def default_interrupter(self): + ptr = native_bt.graph_borrow_default_interrupter(self._ptr) + return bt2_interrupter.Interrupter._create_from_ptr_and_get_ref(ptr)