Skip to content

Commit

Permalink
paulmck: Prefix free-function "retire" with "rcu_"
Browse files Browse the repository at this point in the history
Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
paulmck committed Jul 28, 2017
1 parent b8489ea commit 5d8aa6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Test/paulmck/rcu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace std {
}

template<typename T, typename D = default_delete<T>>
void retire(T *p, D d = {})
void rcu_retire(T *p, D d = {})
{
auto robnp = new details::rcu_obj_base_ni<T, D>(p, d);

Expand Down
2 changes: 1 addition & 1 deletion Test/paulmck/test2a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main(int argc, char **argv)
// Next with bare retire().
fp = new struct foo;
fp->a = 44;
std::retire(fp, my_cb);
std::rcu_retire(fp, my_cb);
std::rcu_updater::barrier();

rcu_unregister_thread();
Expand Down

0 comments on commit 5d8aa6e

Please sign in to comment.