pub struct SchedTaskMemorySet<const N: usize> { /* private fields */ }Expand description
The spawned sched tasks’ task memory, N rows in spawn (chain)
order, behind a once-only latch.
Implementations§
Source§impl<const N: usize> SchedTaskMemorySet<N>
impl<const N: usize> SchedTaskMemorySet<N>
Sourcepub const fn new(rows: [SchedTaskMemoryRaw; N]) -> Self
pub const fn new(rows: [SchedTaskMemoryRaw; N]) -> Self
const, for a static initialiser over the per-sched-task statics.
Sourcepub fn take(&'static self) -> &'static [SchedTaskMemoryRaw]
pub fn take(&'static self) -> &'static [SchedTaskMemoryRaw]
Hand out every row, once. A second call returns an EMPTY slice, which a board refuses by count rather than giving two tasks one stack.
Auto Trait Implementations§
impl<const N: usize> !Freeze for SchedTaskMemorySet<N>
impl<const N: usize> RefUnwindSafe for SchedTaskMemorySet<N>
impl<const N: usize> Send for SchedTaskMemorySet<N>
impl<const N: usize> Sync for SchedTaskMemorySet<N>
impl<const N: usize> Unpin for SchedTaskMemorySet<N>
impl<const N: usize> UnsafeUnpin for SchedTaskMemorySet<N>
impl<const N: usize> UnwindSafe for SchedTaskMemorySet<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more