A more RCU-friendly referenced base class, and misc ref.hh clean up.
referenced includes a "tryinc" member function that returns false if
the reference count is 0, otherwise it increments the ref. count and
returns true. As a bonus, the implementation does not use cmpxchg
loops/retries.
正在显示
请
注册
或者
登录
后发表评论