From: David Goulet Date: Sat, 16 Jul 2011 19:22:24 +0000 (-0400) Subject: Add comment for the session list lock X-Git-Tag: v2.0-pre1~31 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=04ea676f7fb2a6b3d5470737b498418ab37d5e0a Add comment for the session list lock Signed-off-by: David Goulet --- diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index 46be1b536..69d5f6b7f 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -105,6 +105,8 @@ static pthread_mutex_t kconsumerd_pid_mutex; /* Mutex to control kconsumerd pid * This points to the tracing session list containing the session count and a * mutex lock. The lock MUST be taken if you iterate over the list. The lock * MUST NOT be taken if you call a public function in session.c. + * + * The lock is nested inside the structure: session_list_ptr->lock. */ static struct ltt_session_list *session_list_ptr;