diff --git a/src/epoch.rs b/src/epoch.rs index acfbfc7..fa40301 100644 --- a/src/epoch.rs +++ b/src/epoch.rs @@ -107,6 +107,13 @@ pub struct RcuReader { ptr: *const T, } +impl RcuReader { + /// returns true if the underlying ptr is the same one + pub fn ptr_eq(&self, other: &RcuReader) -> bool { + self.ptr == other.ptr + } +} + impl Deref for RcuReader { type Target = T;