lib: remove bt_query_executor_interrupt, add bt_query_executor_borrow_default_interrupter
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 17 Dec 2019 19:11:36 +0000 (14:11 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 17 Dec 2019 19:59:59 +0000 (19:59 +0000)
commit88d1a0b7d8a6dc9061ad0ddc3a471f68eb53f9a7
tree9948f7e5d1cf980767d12b623b51fbf3798ee882
parentc513d2401e36d61f007fee2c8cc12c306fdd6a3c
lib: remove bt_query_executor_interrupt, add bt_query_executor_borrow_default_interrupter

It is currently possible to interrupt a running quer executor with
bt_query_executor_interrupt.  It is however not possible to reset the
default interrupter that this function sets and resume the query
execution.

Rather than add a new query executor function to reset the default query
executor interrupter, introduce a new function,
bt_query_executor_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_query_executor_interrupt function, since it's
no longer needed.

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