diff options
author | 2023-01-31 15:55:14 +0100 | |
---|---|---|
committer | 2023-02-01 09:10:30 +0100 | |
commit | 4c95224e7274dc508e6d89304b9f58bf07c40ee6 (patch) | |
tree | 090292c4a714035982bca628625379ca129362c4 /rtic-common/src/wait_queue.rs | |
parent | bad222b5a3ecb65e905259a652bcceff69878b95 (diff) | |
download | rtic-4c95224e7274dc508e6d89304b9f58bf07c40ee6.tar.gz rtic-4c95224e7274dc508e6d89304b9f58bf07c40ee6.tar.zst rtic-4c95224e7274dc508e6d89304b9f58bf07c40ee6.zip |
Fix spelling error
Diffstat (limited to '')
-rw-r--r-- | rtic-common/src/wait_queue.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rtic-common/src/wait_queue.rs b/rtic-common/src/wait_queue.rs index ba8ff547..4ced6ab9 100644 --- a/rtic-common/src/wait_queue.rs +++ b/rtic-common/src/wait_queue.rs @@ -58,7 +58,7 @@ impl<T: Clone> LinkedList<T> { // Clear the pointers in the node. head_ref.next.store(null_mut(), Self::R); head_ref.prev.store(null_mut(), Self::R); - head_ref.is_poped.store(true, Self::R); + head_ref.is_popped.store(true, Self::R); return Some(head_val); } @@ -102,7 +102,7 @@ pub struct Link<T> { pub(crate) val: T, next: AtomicPtr<Link<T>>, prev: AtomicPtr<Link<T>>, - is_poped: AtomicBool, + is_popped: AtomicBool, _up: PhantomPinned, } @@ -115,14 +115,14 @@ impl<T: Clone> Link<T> { val, next: AtomicPtr::new(null_mut()), prev: AtomicPtr::new(null_mut()), - is_poped: AtomicBool::new(false), + is_popped: AtomicBool::new(false), _up: PhantomPinned, } } /// Return true if this link has been poped from the list. - pub fn is_poped(&self) -> bool { - self.is_poped.load(Self::R) + pub fn is_popped(&self) -> bool { + self.is_popped.load(Self::R) } /// Remove this link from a linked list. @@ -133,7 +133,7 @@ impl<T: Clone> Link<T> { let prev = self.prev.load(Self::R); let next = self.next.load(Self::R); - self.is_poped.store(true, Self::R); + self.is_popped.store(true, Self::R); match unsafe { (prev.as_ref(), next.as_ref()) } { (None, None) => { |