Improve comments after review
[lttng-tools.git] / src / bin / lttng-sessiond / consumer.h
index d9a78359926516cc311bc7ee5dc63f44bf080079..27da4e38c2bfa7e70a460e4c61abeec40cd82e0b 100644 (file)
@@ -105,7 +105,11 @@ struct consumer_data {
        char err_unix_sock_path[PATH_MAX];
        char cmd_unix_sock_path[PATH_MAX];
 
-       /* communication lock */
+       /*
+        * This lock has two purposes. It protects any change to the consumer
+        * socket and make sure only one thread uses this object for read/write
+        * operations.
+        */
        pthread_mutex_t lock;
 };
 
This page took 0.02323 seconds and 4 git commands to generate.