Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git] / src / bin / lttng-sessiond / timer.cpp
index 4e8b8026b2ee7534f01a95826b8f92f89f6b4dd3..30eb13446e3badb44e1e278e5f8ad5c636490e7c 100644 (file)
        })
 #define PTR_TO_UINT(ptr) ((uintptr_t) ptr)
 
+namespace {
 /*
  * Handle timer teardown race wrt memory free of private data by sessiond
  * signals are handled by a single thread, which permits a synchronization
  * point between handling of each signal. Internal lock ensures mutual
  * exclusion.
  */
-static
 struct timer_signal_data {
        /* Thread managing signals. */
        pthread_t tid;
@@ -44,6 +44,7 @@ struct timer_signal_data {
        .qs_done = 0,
        .lock = PTHREAD_MUTEX_INITIALIZER,
 };
+} /* namespace */
 
 /*
  * Set custom signal mask to current thread.
This page took 0.023325 seconds and 4 git commands to generate.