From 04ea676f7fb2a6b3d5470737b498418ab37d5e0a Mon Sep 17 00:00:00 2001 From: David Goulet Date: Sat, 16 Jul 2011 15:22:24 -0400 Subject: [PATCH 1/1] Add comment for the session list lock Signed-off-by: David Goulet --- ltt-sessiond/main.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.34.1