X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-flavor.h;h=5e7f292514fd389c2982c36c9d51e45265f5fa0d;hp=9af4d0e632b291799a49a747d7f6bcb1f05efc60;hb=994d4955b9fff8b8b695c7ad887a91357f6964c4;hpb=f8fc437722856fefd5d415405d5ce8d79e8b6e96 diff --git a/urcu-flavor.h b/urcu-flavor.h index 9af4d0e..5e7f292 100644 --- a/urcu-flavor.h +++ b/urcu-flavor.h @@ -30,6 +30,7 @@ extern "C" { struct rcu_flavor_struct { void (*read_lock)(void); void (*read_unlock)(void); + int (*read_ongoing)(void); void (*read_quiescent_state)(void); void (*update_call_rcu)(struct rcu_head *head, void (*func)(struct rcu_head *head)); @@ -40,12 +41,15 @@ struct rcu_flavor_struct { void (*thread_online)(void); void (*register_thread)(void); void (*unregister_thread)(void); + + void (*barrier)(void); }; #define DEFINE_RCU_FLAVOR(x) \ const struct rcu_flavor_struct x = { \ .read_lock = rcu_read_lock, \ .read_unlock = rcu_read_unlock, \ + .read_ongoing = rcu_read_ongoing, \ .read_quiescent_state = rcu_quiescent_state, \ .update_call_rcu = call_rcu, \ .update_synchronize_rcu = synchronize_rcu, \ @@ -54,6 +58,7 @@ const struct rcu_flavor_struct x = { \ .thread_online = rcu_thread_online, \ .register_thread = rcu_register_thread, \ .unregister_thread = rcu_unregister_thread,\ + .barrier = rcu_barrier, \ } extern const struct rcu_flavor_struct rcu_flavor;