Docs: document safety of consumer_thread_is_ready access
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jun 2016 09:03:26 +0000 (05:03 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jun 2016 09:03:26 +0000 (05:03 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index 916a2b76993edc96111365760077c4a5951cfeeb..fc954d28d46cccf1a4e55ab5a938a619c822f808 100644 (file)
@@ -2371,7 +2371,12 @@ static int spawn_consumer_thread(struct consumer_data *consumer_data)
        int ret, clock_ret;
        struct timespec timeout;
 
-       /* Make sure we set the readiness flag to 0 because we are NOT ready */
+       /*
+        * Make sure we set the readiness flag to 0 because we are NOT ready.
+        * This access to consumer_thread_is_ready does not need to be
+        * protected by consumer_data.cond_mutex (yet) since the consumer
+        * management thread has not been started at this point.
+        */
        consumer_data->consumer_thread_is_ready = 0;
 
        /* Setup pthread condition */
This page took 0.030701 seconds and 4 git commands to generate.