Struct netsblox_vm::runtime::Barrier
source · pub struct Barrier(/* private fields */);Expand description
A blocking handle for a BarrierCondition.
Implementations§
source§impl Barrier
impl Barrier
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new Barrier which is not related to any other barrier.
A barrier can be cloned to create additional associated, blocking handles for the same condition.
sourcepub fn get_condition(&self) -> BarrierCondition
pub fn get_condition(&self) -> BarrierCondition
Constructs a BarrierCondition object which waits for this barrier handle and all of its associated handles
(created before or after this point) to be destroyed.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Barrier
impl !Send for Barrier
impl !Sync for Barrier
impl Unpin for Barrier
impl UnwindSafe for Barrier
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