mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
Blah
This commit is contained in:
parent
404c30d620
commit
daf977dcff
1 changed files with 2 additions and 1 deletions
|
|
@ -363,7 +363,8 @@ impl<T, const N: usize> Sender<'_, T, N> {
|
|||
}
|
||||
|
||||
// SAFETY: `free_slot_ptr` is valid for writes, as `free_slot_ptr` is still alive.
|
||||
let slot = unsafe { free_slot_ptr.replace(None, cs) };
|
||||
let slot = unsafe { free_slot_ptr.replace(None, cs) }
|
||||
.or_else(|| self.0.access(cs).freeq.pop_back());
|
||||
|
||||
if let Some(slot) = slot {
|
||||
Poll::Ready(Ok(slot))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue