X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer.h;h=e1a4b7e9e44f39f5bd9b60cc750ac78ef98feac3;hb=bec11ce9cd8cbf36ad6d58b79d5a37f4d78d9a14;hp=37adecbfe689e28a79303c601cefbe2ea6311677;hpb=a687700076c3ddd9f08e8f1f77c7d66f7f40c8fc;p=lttng-tools.git diff --git a/src/common/consumer/consumer.h b/src/common/consumer/consumer.h index 37adecbfe..e1a4b7e9e 100644 --- a/src/common/consumer/consumer.h +++ b/src/common/consumer/consumer.h @@ -218,6 +218,8 @@ struct lttng_consumer_channel { uint64_t discarded_events; /* Total number of missed packets due to overwriting (overwrite). */ uint64_t lost_packets; + + bool streams_sent_to_relayd; }; /* @@ -591,6 +593,12 @@ struct lttng_consumer_global_data { struct lttng_ht *stream_per_chan_id_ht; }; +/* + * Set to nonzero when the consumer is exiting. Updated by signal + * handler and thread exit, read by threads. + */ +extern volatile int consumer_quit; + /* * Init consumer data structures. */