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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Aug 2019 18:05:19 +0000 (14:05 -0400)
commitc7f8c4e43a72dd669e76c132bc7bd145679072af
tree507c65a7a2e602773cf9fe82b73911bc94cfb46a
parent7d8f15e645ce6294cc273c1a4d28b0332626f733
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.025059 seconds and 4 git commands to generate.