Lines Matching defs:Completion
3 //! Completion support.
13 /// The [`Completion`] synchronization primitive signals when a certain task has been completed by
14 /// waking up other tasks that have been queued up to wait for the [`Completion`] to be completed.
19 /// use kernel::sync::{Arc, Completion};
27 /// done: Completion,
38 /// done <- Completion::new(),
49 /// pr_info!("Completion: task complete\n");
67 pub struct Completion {
72 // SAFETY: `Completion` is safe to be send to any task.
73 unsafe impl Send for Completion {}
75 // SAFETY: `Completion` is safe to be accessed concurrently.
76 unsafe impl Sync for Completion {}
78 impl Completion {
79 /// Create an initializer for a new [`Completion`].
108 /// See also [`Completion::complete_all`].