mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 13:00:26 +00:00
Make Producer<..., SingleCore> Send, like Consumer
I assume there's no reason that only multi-core Producers are marked Send, while Consumers are not (they're pretty symmetrical).
This commit is contained in:
parent
357a312dba
commit
87917e059b
@ -61,11 +61,12 @@ where
|
|||||||
_marker: PhantomData<&'a ()>,
|
_marker: PhantomData<&'a ()>,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl<'a, T, N, U> Send for Producer<'a, T, N, U>
|
unsafe impl<'a, T, N, U, C> Send for Producer<'a, T, N, U, C>
|
||||||
where
|
where
|
||||||
N: ArrayLength<T>,
|
N: ArrayLength<T>,
|
||||||
T: Send,
|
T: Send,
|
||||||
U: sealed::Uxx,
|
U: sealed::Uxx,
|
||||||
|
C: sealed::XCore,
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user