diff options
| author | datdenkikniet <jcdra1@gmail.com> | 2023-04-13 18:42:48 +0200 |
|---|---|---|
| committer | datdenkikniet <jcdra1@gmail.com> | 2023-04-15 19:19:49 +0200 |
| commit | 822eaabec01441b626ae6874aa9897843b9a69a1 (patch) | |
| tree | 78b1de06cc1e631273554115e8249a5790d98008 /rtic-time/src/linked_list.rs | |
| parent | dcbd7ce97024eb20a1e2331ba68435370bdd9129 (diff) | |
rtic-time: Docs
Diffstat (limited to 'rtic-time/src/linked_list.rs')
| -rw-r--r-- | rtic-time/src/linked_list.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rtic-time/src/linked_list.rs b/rtic-time/src/linked_list.rs index c2a9967..b84b92d 100644 --- a/rtic-time/src/linked_list.rs +++ b/rtic-time/src/linked_list.rs @@ -1,11 +1,12 @@ -//! ... - use core::marker::PhantomPinned; use core::pin::Pin; use core::sync::atomic::{AtomicPtr, Ordering}; use critical_section as cs; -/// A sorted linked list for the timer queue. +/// An atomic sorted linked list for the timer queue. +/// +/// Atomicity is guaranteed using very short [`critical_section`]s, so this list is _not_ +/// lock free, but it will not deadlock. pub(crate) struct LinkedList<T> { head: AtomicPtr<Link<T>>, } |
