Clean-up: consumer.hpp: coding style indentation fix
[lttng-tools.git] / include / lttng / ref-internal.hpp
index 68b6efd1b8b6a8290a964fe0ee045cdd553b2508..8416d6bcff29f4526836a7b3682c688cf12e26c4 100644 (file)
@@ -1,6 +1,3 @@
-#ifndef LTTNG_REF_INTERNAL_H
-#define LTTNG_REF_INTERNAL_H
-
 /*
  * LTTng - Non thread-safe reference counting
  *
@@ -10,6 +7,13 @@
  *
  */
 
+#ifndef LTTNG_REF_INTERNAL_H
+#define LTTNG_REF_INTERNAL_H
+
+#include <common/macros.hpp>
+
+#include <urcu/urcu.h>
+
 using lttng_release_func = void (*)(void *);
 
 struct lttng_ref {
@@ -17,16 +21,14 @@ struct lttng_ref {
        lttng_release_func release;
 };
 
-static inline
-void lttng_ref_init(struct lttng_ref *ref, lttng_release_func release)
+static inline void lttng_ref_init(struct lttng_ref *ref, lttng_release_func release)
 {
        LTTNG_ASSERT(ref);
        ref->count = 1;
        ref->release = release;
 }
 
-static inline
-void lttng_ref_get(struct lttng_ref *ref)
+static inline void lttng_ref_get(struct lttng_ref *ref)
 {
        LTTNG_ASSERT(ref);
        ref->count++;
@@ -34,8 +36,7 @@ void lttng_ref_get(struct lttng_ref *ref)
        LTTNG_ASSERT(ref->count);
 }
 
-static inline
-void lttng_ref_put(struct lttng_ref *ref)
+static inline void lttng_ref_put(struct lttng_ref *ref)
 {
        LTTNG_ASSERT(ref);
        /* Underflow check. */
This page took 0.023499 seconds and 4 git commands to generate.