Lines Matching +full:wake +full:- +full:up
1 // SPDX-License-Identifier: GPL-2.0
22 /// Creates a [`CondVar`] initialiser with the given name and a newly-created lock class.
34 /// atomically release the given lock and go to sleep. It reacquires the lock when it wakes up. And
35 /// it wakes up when notified by another thread (via [`CondVar::notify_one`] or
36 /// [`CondVar::notify_all`]) or because the thread received a signal. It may also wake up
73 /// fn new_example() -> Result<Pin<KBox<Example>>> {
75 /// value <- new_mutex!(0),
76 /// value_changed <- new_condvar!(),
88 /// self-referential, so it cannot be safely moved once it is initialised.
104 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> {
109 wait_queue_head <- Opaque::ffi_init(|slot| unsafe {
120 ) -> c_long {
143 /// thread to sleep, reacquiring the lock on wake up. It wakes up when notified by
144 /// [`CondVar::notify_one`] or [`CondVar::notify_all`]. Note that it may also wake up
153 /// wake up due to signals. It may also wake up spuriously.
157 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool {
165 /// thread to sleep. It wakes up when notified by [`CondVar::notify_one`] or
172 ) -> CondVarTimeoutResult {
206 /// Wakes a single waiter up, if any.
209 /// completely (as opposed to automatically waking up the next waiter).
214 /// Wakes all waiters up, if any.
217 /// completely (as opposed to automatically waking up the next waiter).
227 /// Somebody woke us up.