X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=urcu-flavor.h;h=9af4d0e632b291799a49a747d7f6bcb1f05efc60;hb=31bb09e25620ac7619a83146e002e73ed381d107;hp=e46c9a19beb73538a4274973a958e0b8546ea75e;hpb=6e464eba97cf74320fe4e2b8da6dbe5039582948;p=urcu.git diff --git a/urcu-flavor.h b/urcu-flavor.h index e46c9a1..9af4d0e 100644 --- a/urcu-flavor.h +++ b/urcu-flavor.h @@ -42,8 +42,8 @@ struct rcu_flavor_struct { void (*unregister_thread)(void); }; -#define DEFINE_RCU_FLAVOR() \ -const struct rcu_flavor_struct rcu_flavor = { \ +#define DEFINE_RCU_FLAVOR(x) \ +const struct rcu_flavor_struct x = { \ .read_lock = rcu_read_lock, \ .read_unlock = rcu_read_unlock, \ .read_quiescent_state = rcu_quiescent_state, \ @@ -54,7 +54,7 @@ const struct rcu_flavor_struct rcu_flavor = { \ .thread_online = rcu_thread_online, \ .register_thread = rcu_register_thread, \ .unregister_thread = rcu_unregister_thread,\ -}; +} extern const struct rcu_flavor_struct rcu_flavor;