rtic-sync: add comment about why we don't return_free_slot

This commit is contained in:
datdenkikniet 2025-03-17 20:49:54 +01:00 committed by Emil Fresk
parent 2671a4de26
commit 7178f08541

View file

@ -128,6 +128,9 @@ impl<T, const N: usize> Channel<T, N> {
core::ptr::read(ptr)
};
// NOTE: do not `return_free_slot`, as we have mutable
// access to this `Channel` and no `Receiver` or `Sender`
// exist.
assert!(!self.inner.freeq.as_mut().is_full());
unsafe {
// SAFETY: `freeq` is not ful.