Lines Matching defs:guard
43 /// let guard = v.try_access()?;
44 /// Some(guard.a + guard.b)
65 /// let guard = rcu::read_lock();
66 /// let e = v.try_access_with_guard(&guard)?;
105 /// Returns a guard that gives access to the object otherwise; the object is guaranteed to
106 /// remain accessible while the guard is alive. In such cases, callers are not allowed to sleep
109 let guard = rcu::read_lock();
113 Some(RevocableGuard::new(self.data.get(), guard))
124 /// remain accessible while the rcu read side guard is alive. In such cases, callers are not
137 /// Tries to access the wrapped object and run a closure on it while the guard is held.
140 /// guard is dropped afterwards. [`Self::try_access`] carries the risk that the caller will
141 /// forget to explicitly drop that returned guard before calling sleepable code; this method
207 /// [`Revocable::try_access`] beforehand and still haven't dropped the returned guard), this
235 /// A guard that allows access to a revocable object and keeps it alive.
242 /// The RCU read-side lock is held while the guard is alive.