X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.h;h=167ea9c058afa2fac651e1fedc886e7009526aca;hp=ebb65bfd833836ab6a648aaacd22ae672fbe91bd;hb=a24f7994321e1b114bf900b530604560786a9131;hpb=fbb28ea917664ffc561d4897e3212d98da9e286f diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h index ebb65bfd8..167ea9c05 100644 --- a/src/bin/lttng-sessiond/session.h +++ b/src/bin/lttng-sessiond/session.h @@ -31,19 +31,19 @@ */ struct ltt_session_list { /* - * This lock protects any read/write access to the list and count (which is - * basically the list size). All public functions in session.c acquire this - * lock and release it before returning. If none of those functions are - * used, the lock MUST be acquired in order to iterate or/and do any - * actions on that list. + * This lock protects any read/write access to the list and + * next_uuid. All public functions in session.c acquire this + * lock and release it before returning. If none of those + * functions are used, the lock MUST be acquired in order to + * iterate or/and do any actions on that list. */ pthread_mutex_t lock; /* - * Number of element in the list. The session list lock MUST be acquired if - * this counter is used when iterating over the session list. + * Session unique ID generator. The session list lock MUST be + * upon update and read of this counter. */ - unsigned int count; + unsigned int next_uuid; /* Linked list head */ struct cds_list_head head;