X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fthread.cpp;h=fd9136fe5562b4e5acee6a70bef36061572b38c0;hb=0114db0ec2407029052eb61a0189c9b1cd64d520;hp=94890e6ef47786db7d13fce3fac6f9e372fe878a;hpb=64803277bbdbe0a943360d918298a48157d9da55;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/thread.cpp b/src/bin/lttng-sessiond/thread.cpp index 94890e6ef..fd9136fe5 100644 --- a/src/bin/lttng-sessiond/thread.cpp +++ b/src/bin/lttng-sessiond/thread.cpp @@ -13,13 +13,15 @@ #include #include -static struct thread_list { +namespace { +struct thread_list { struct cds_list_head head; pthread_mutex_t lock; } thread_list = { .head = CDS_LIST_HEAD_INIT(thread_list.head), .lock = PTHREAD_MUTEX_INITIALIZER, }; +} /* namespace */ struct lttng_thread { struct urcu_ref ref; @@ -52,7 +54,7 @@ void lttng_thread_destroy(struct lttng_thread *thread) static void lttng_thread_release(struct urcu_ref *ref) { - lttng_thread_destroy(container_of(ref, struct lttng_thread, ref)); + lttng_thread_destroy(lttng::utils::container_of(ref, <tng_thread::ref)); } static