13 Ref_ptr(T *o = 0) : _p(o)
18 // assert_kdb (cpu_lock.test());
25 Ref_ptr(Ref_ptr<T> const &o)
32 void operator = (Ref_ptr<T> const &o)
39 void operator = (T *o)
46 T *operator -> () const { return _p; }
50 operator Null_type const * () const
51 { return reinterpret_cast<Null_type const *>(_p); }
56 if (_p && (_p->dec_ref() == 0))
58 current()->rcu_wait();