X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flttng-relayd.h;h=c17a67ea806a6c36f069f85801927e0c1721ca45;hb=d1d6606181b5295bd16e481c9fb40a4402e91567;hp=8039a7ec703d01f4672d32abcc9448ed49fb017a;hpb=6b6b9a5a667d6713eb7bcf22daf4f9bbeef00fb1;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/lttng-relayd.h b/src/bin/lttng-relayd/lttng-relayd.h index 8039a7ec7..c17a67ea8 100644 --- a/src/bin/lttng-relayd/lttng-relayd.h +++ b/src/bin/lttng-relayd/lttng-relayd.h @@ -166,6 +166,13 @@ 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. + * + * This is nested INSIDE the viewer_stream_rotation_lock. + */ + pthread_mutex_t overwrite_lock; /* Information telling us if the stream is a metadata stream. */ unsigned int metadata_flag:1; /*