mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
rtic-sync: add comment about why we don't return_free_slot
This commit is contained in:
parent
2671a4de26
commit
7178f08541
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue