common: replace container_of with a C++ safe implementation
[lttng-tools.git] / src / bin / lttng-sessiond / thread.cpp
index 201917396462230165f91a931c33373d2a556eff..fd9136fe5562b4e5acee6a70bef36061572b38c0 100644 (file)
@@ -54,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, &lttng_thread::ref));
 }
 
 static
This page took 0.022962 seconds and 4 git commands to generate.