X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flttng-relayd.h;h=0af8e0f1d963199b5a6bb82c28b244a33daa6b6c;hp=8039a7ec703d01f4672d32abcc9448ed49fb017a;hb=cef0f7d51b8025d3ba04e6496242c1cca1641aa6;hpb=cc7f9e363bf9230260b2ef27c84e24f75a7535c0 diff --git a/src/bin/lttng-relayd/lttng-relayd.h b/src/bin/lttng-relayd/lttng-relayd.h index 8039a7ec7..0af8e0f1d 100644 --- a/src/bin/lttng-relayd/lttng-relayd.h +++ b/src/bin/lttng-relayd/lttng-relayd.h @@ -166,6 +166,11 @@ struct relay_viewer_stream { struct lttng_ht_node_u64 stream_n; struct rcu_head rcu_node; struct ctf_trace *ctf_trace; + /* + * This lock blocks only when the writer is about to start overwriting + * a file currently read by the reader. + */ + pthread_mutex_t overwrite_lock; /* Information telling us if the stream is a metadata stream. */ unsigned int metadata_flag:1; /*