Home
last modified time | relevance | path

Searched refs:CondVar (Results 1 – 3 of 3) sorted by relevance

/linux/rust/kernel/sync/
H A Dpoll.rs11 sync::{CondVar, LockClassKey},
65 /// A wrapper around [`CondVar`] that makes it usable with [`PollTable`].
67 /// [`CondVar`]: crate::sync::CondVar
71 inner: CondVar,
78 inner <- CondVar::new(name, key), in new()
83 // Make the `CondVar` methods callable on `PollCondVar`.
85 type Target = CondVar;
87 fn deref(&self) -> &CondVar { in deref() argument
H A Dcondvar.rs21 /// Creates a [`CondVar`] initialiser with the given name and a newly-created lock class.
25 $crate::sync::CondVar::new($crate::optional_name!($($name)?), $crate::static_lock_class!())
34 /// it wakes up when notified by another thread (via [`CondVar::notify_one`] or
35 /// [`CondVar::notify_all`]) or because the thread received a signal. It may also wake up
38 /// Instances of [`CondVar`] need a lock class and to be pinned. The recommended way to create such
46 /// use kernel::sync::{new_condvar, new_mutex, CondVar, Mutex};
54 /// value_changed: CondVar,
82 pub struct CondVar { struct
94 // SAFETY: `CondVar` only uses a `struct wait_queue_head`, which is safe to use on any thread. argument
95 unsafe impl Send for CondVar {} implementation
99 unsafe impl Sync for CondVar {} global() implementation
101 impl CondVar { global() implementation
[all...]
/linux/rust/kernel/
H A Dsync.rs23 pub use condvar::{new_condvar, CondVar, CondVarTimeoutResult};