lib: bt_query_executor_query(): check interruption state before querying
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Jul 2019 14:25:05 +0000 (10:25 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 24 Jul 2019 16:00:31 +0000 (12:00 -0400)
commit647c6d450bb4312b2195fb9736eacc15a47f8e70
tree897da3345df16db909116f022f4f1a0a0593120a
parent577fa92f184fd2d75fb0697e879ab563de117c2e
lib: bt_query_executor_query(): check interruption state before querying

This patch makes bt_query_executor_query() check its interruption state
(with bt_query_executor_is_interrupted()) before it calls the user
method. This is just a convenience so that the user does not need to
check bt_query_executor_is_interrupted() for every
bt_query_executor_query() call.

The comment `query-executor.c` explains why the function returns
`BT_QUERY_EXECUTOR_QUERY_STATUS_AGAIN` in that case.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I3bfceed538601d83c1ab627f5241c59f9f2e7c49
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1757
Tested-by: jenkins <jenkins@lttng.org>
src/lib/graph/query-executor.c
This page took 0.025711 seconds and 4 git commands to generate.