Lines Matching full:guard
32 /// let guard = v.try_access()?;
33 /// Some(guard.a + guard.b)
54 /// let guard = rcu::read_lock();
55 /// let e = v.try_access_with_guard(&guard)?;
94 /// Returns a guard that gives access to the object otherwise; the object is guaranteed to
95 /// remain accessible while the guard is alive. In such cases, callers are not allowed to sleep
98 let guard = rcu::read_lock(); in try_access() localVariable
102 Some(RevocableGuard::new(self.data.get(), guard)) in try_access()
113 /// remain accessible while the rcu read side guard is alive. In such cases, callers are not
116 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
162 /// [`Revocable::try_access`] beforehand and still haven't dropped the returned guard), this
187 /// A guard that allows access to a revocable object and keeps it alive.
194 /// The RCU read-side lock is held while the guard is alive.
197 _rcu_guard: rcu::Guard,
202 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new()