X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer.h;fp=src%2Fcommon%2Fconsumer%2Fconsumer.h;h=737f2a42c449099035bbf8c671090c4fb1234310;hp=7f8d14704d23ec6a8ad967ecc951f09d6d017ced;hb=947bd0978b3d17b34eb1158cc6439eb1d4e5b6c3;hpb=ef9ff9cb5ff4dd763d4c9dbbcfcb5952adce167e diff --git a/src/common/consumer/consumer.h b/src/common/consumer/consumer.h index 7f8d14704..737f2a42c 100644 --- a/src/common/consumer/consumer.h +++ b/src/common/consumer/consumer.h @@ -396,6 +396,13 @@ typedef void (*lock_cb)(struct lttng_consumer_stream *); */ typedef void (*unlock_cb)(struct lttng_consumer_stream *); +/* + * Assert that the stream and channel lock and any other stream type specific + * lock that need to be acquired during the processing of a read_subbuffer + * operation is acquired. + */ +typedef void (*assert_locked_cb)(struct lttng_consumer_stream *); + /* * Invoked when a subbuffer's metadata version does not match the last * known metadata version. @@ -647,6 +654,7 @@ struct lttng_consumer_stream { send_live_beacon_cb send_live_beacon; on_sleep_cb on_sleep; unlock_cb unlock; + assert_locked_cb assert_locked; } read_subbuffer_ops; struct metadata_bucket *metadata_bucket; };