Lines Matching +full:wake +full:- +full:up
1 // SPDX-License-Identifier: GPL-2.0
13 /// Creates a [`CondVar`] initialiser with the given name and a newly-created lock class.
24 /// atomically release the given lock and go to sleep. It reacquires the lock when it wakes up. And
25 /// it wakes up when notified by another thread (via [`CondVar::notify_one`] or
26 /// [`CondVar::notify_all`]) or because the thread received a signal. It may also wake up
64 /// fn new_example() -> Result<Pin<Box<Example>>> {
66 /// value <- new_mutex!(0),
67 /// value_changed <- new_condvar!(),
79 /// self-referential, so it cannot be safely moved once it is initialised.
95 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
100 wait_list <- Opaque::ffi_init(|slot| unsafe { in new()
127 /// thread to sleep, reacquiring the lock on wake up. It wakes up when notified by
129 /// It may also wake up spuriously.
133 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait()
141 /// thread won't wake up due to signals. It may, however, wake up supirously.
159 /// Wakes a single waiter up, if any.
162 /// completely (as opposed to automatically waking up the next waiter).
167 /// Wakes all waiters up, if any.
170 /// completely (as opposed to automatically waking up the next waiter).