X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-flavor.h;h=9af4d0e632b291799a49a747d7f6bcb1f05efc60;hp=e46c9a19beb73538a4274973a958e0b8546ea75e;hb=5e6b23a6d94f0c1ae4bc34bd8ee4942938d757f6;hpb=5bc6b66f4dd5e21dc30d647760530a3ce06f4c2f 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;