7#ifndef BABELTRACE2_GRAPH_INTERRUPTER_H
8#define BABELTRACE2_GRAPH_INTERRUPTER_H
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
16#include <babeltrace2/types.h>
235#define BT_INTERRUPTER_PUT_REF_AND_RESET(_interrupter) \
237 bt_interrupter_put_ref(_interrupter); \
238 (_interrupter) = NULL; \
266#define BT_INTERRUPTER_MOVE_REF(_dst, _src) \
268 bt_interrupter_put_ref(_dst); \
int bt_bool
Babeltrace 2 boolean type.
Definition types.h:126
void bt_interrupter_get_ref(const bt_interrupter *interrupter)
Increments the reference count of the interrupter interrupter.
void bt_interrupter_put_ref(const bt_interrupter *interrupter)
Decrements the reference count of the interrupter interrupter.
void bt_interrupter_set(bt_interrupter *interrupter)
Sets the interrupter interrupter.
bt_bool bt_interrupter_is_set(const bt_interrupter *interrupter)
Returns whether or not the interrupter interrupter is set.
struct bt_interrupter bt_interrupter
Interrupter.
Definition types.h:57
void bt_interrupter_reset(bt_interrupter *interrupter)
Resets the interrupter interrupter.
bt_interrupter * bt_interrupter_create(void)
Creates a default interrupter.