lib: remove bt_graph_interrupt, add bt_graph_borrow_default_interrupter
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 16 Dec 2019 21:25:06 +0000 (16:25 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 17 Dec 2019 17:08:19 +0000 (17:08 +0000)
commitc513d2401e36d61f007fee2c8cc12c306fdd6a3c
tree54a766702a29c5713c74e3e863c81a2cece2b7a5
parentf3d6b4c2f7592fde9ff770989b25bacaa4820dc8
lib: remove bt_graph_interrupt, add bt_graph_borrow_default_interrupter

It is currently possible to interrupt a running graph with
bt_graph_interrupt.  It is however not possible to reset the default
interrupter that this function sets and resume the graph execution.

Rather than add a new graph function to reset the default graph
interrupter, introduce a new function,
bt_graph_borrow_default_interrupter, to borrow that default interrupter.
All the bt_interrupter API is therefore accessible with this default
interrupter.

This patch removes the bt_graph_interrupt function, since it's no longer
needed.

Change-Id: I277e6c8bb4e1be0a6557a6287b7ba8997e20d27b
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2708
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
include/babeltrace2/graph/graph.h
src/bindings/python/bt2/bt2/graph.py
src/lib/graph/graph.c
src/lib/graph/graph.h
tests/bindings/python/bt2/test_graph.py
This page took 0.024995 seconds and 4 git commands to generate.