Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git] / src / bin / lttng-sessiond / thread.cpp
index 94890e6ef47786db7d13fce3fac6f9e372fe878a..201917396462230165f91a931c33373d2a556eff 100644 (file)
 #include <common/error.hpp>
 #include <common/defaults.hpp>
 
-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;
This page took 0.023405 seconds and 4 git commands to generate.