From: Jérémie Galarneau Date: Wed, 9 Mar 2016 20:33:22 +0000 (-0500) Subject: Docs: Missing locking assumptions in function headers X-Git-Tag: v2.8.0-rc1~96 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=9c6518bcd2b538c09de5e1d1df303b97ec203cc6;hp=3d07eea28a4d86b796d14f27e7bb06fba6804900 Docs: Missing locking assumptions in function headers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c index bb8a55ed7..e57463d3e 100644 --- a/src/bin/lttng-sessiond/session.c +++ b/src/bin/lttng-sessiond/session.c @@ -143,6 +143,8 @@ void session_unlock_list(void) /* * Allocate the ltt_sessions_ht_by_id HT. + * + * The session list lock must be held. */ int ltt_sessions_ht_alloc(void) { @@ -161,6 +163,8 @@ end: /* * Destroy the ltt_sessions_ht_by_id HT. + * + * The session list lock must be held. */ void ltt_sessions_ht_destroy(void) {