+ /* Tell if this session is for a snapshot or not. */
+ unsigned int snapshot:1;
+
+ /*
+ * Indicate version protocol for this session. This is especially useful
+ * for the data thread that has no idea which version it operates on since
+ * linking control/data sockets is non trivial.
+ */
+ uint64_t minor;
+ uint64_t major;
+ /*
+ * Flag checked and exchanged with uatomic_cmpxchg to tell the
+ * viewer-side if new streams got added since the last check.
+ */
+ unsigned long new_streams;
+
+ /*
+ * Used to synchronize the process where we flag every streams readiness
+ * for the viewer when the streams_sent message is received and the viewer
+ * process of sending those streams.
+ */
+ pthread_mutex_t viewer_ready_lock;