Lines Matching refs:Mutex
7 /// Creates a [`Mutex`] initialiser with the given name and a newly-created lock class.
14 $crate::sync::Mutex::new(
26 /// Since it may block, [`Mutex`] needs to be used with care in atomic contexts.
28 /// Instances of [`Mutex`] need a lock class and to be pinned. The recommended way to create such
37 /// use kernel::sync::{new_mutex, Mutex};
48 /// d: Mutex<Inner>,
72 /// use kernel::sync::Mutex;
79 /// fn example(m: &Mutex<Example>) {
87 pub type Mutex<T> = super::Lock<T, MutexBackend>;
89 /// A [`Guard`] acquired from locking a [`Mutex`].
91 /// This is simply a type alias for a [`Guard`] returned from locking a [`Mutex`]. It will unlock
92 /// the [`Mutex`] upon being dropped.