pub struct BarrierLevel(/* private fields */);Implementations§
Source§impl BarrierLevel
impl BarrierLevel
Sourcepub fn cube_unit(_is_elected: bool) -> Self
pub fn cube_unit(_is_elected: bool) -> Self
Creates a CubeUnit barrier level
Same as cube_full but with an expected arrival count of 1. Only the leader thread will
arrive on the barrier. Useful for TMA
Sourcepub fn cube_full(_is_elected: bool) -> Self
pub fn cube_full(_is_elected: bool) -> Self
Creates a CubeCoop barrier level
Will sync all units
Sourcepub fn cube_custom(_arrival_count: u32) -> Self
pub fn cube_custom(_arrival_count: u32) -> Self
Creates a CubeCustom barrier level
Will sync arrival_count units
Sourcepub fn cube_manual() -> Self
pub fn cube_manual() -> Self
Creates a CubeManual barrier level Not initialized automatically
pub fn __expand_unit(_scope: &mut Scope) -> BarrierLevel
pub fn __expand_cube_unit( _scope: &mut Scope, is_elected: ExpandElementTyped<bool>, ) -> Self
pub fn __expand_cube_full( _scope: &mut Scope, is_elected: ExpandElementTyped<bool>, ) -> Self
pub fn __expand_cube_custom( _scope: &mut Scope, is_elected: ExpandElementTyped<bool>, arrival_count: ExpandElementTyped<u32>, ) -> Self
pub fn __expand_cube_manual(_scope: &mut Scope) -> Self
Trait Implementations§
Source§impl Clone for BarrierLevel
impl Clone for BarrierLevel
Source§fn clone(&self) -> BarrierLevel
fn clone(&self) -> BarrierLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CubeDebug for BarrierLevel
impl CubeDebug for BarrierLevel
Source§fn set_debug_name(&self, _scope: &mut Scope, _name: &'static str)
fn set_debug_name(&self, _scope: &mut Scope, _name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl CubeType for BarrierLevel
impl CubeType for BarrierLevel
type ExpandType = BarrierLevel
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Auto Trait Implementations§
impl Freeze for BarrierLevel
impl RefUnwindSafe for BarrierLevel
impl !Send for BarrierLevel
impl !Sync for BarrierLevel
impl Unpin for BarrierLevel
impl UnwindSafe for BarrierLevel
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