X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.h;h=8751f234e31605188294c809d9fef593a82d8198;hb=72c3879d3f2b0b9f6299da88ad6c481a18fd2175;hp=a5a758be5ea141ff609051463852be49525d6b1b;hpb=e32938d205cc18e94f08d407c0ca784fde1af478;p=lttng-tools.git diff --git a/src/common/consumer.h b/src/common/consumer.h index a5a758be5..8751f234e 100644 --- a/src/common/consumer.h +++ b/src/common/consumer.h @@ -157,6 +157,15 @@ struct lttng_consumer_channel { /* On-disk circular buffer */ uint64_t tracefile_size; uint64_t tracefile_count; + /* + * Channel lock. + * + * This is nested INSIDE the consumer data lock. + * This is nested OUTSIDE the metadata cache lock. + * This is nested OUTSIDE stream lock. + * This is nested OUTSIDE consumer_relayd_sock_pair lock. + */ + pthread_mutex_t lock; }; /* @@ -228,6 +237,7 @@ struct lttng_consumer_stream { * * This is nested INSIDE the consumer_data lock. * This is nested INSIDE the metadata cache lock. + * This is nested INSIDE the channel lock. * This is nested OUTSIDE consumer_relayd_sock_pair lock. */ pthread_mutex_t lock;