Struct SimpleThreadCoordinator
pub struct SimpleThreadCoordinator { /* private fields */ }Expand description
Simple thread coordinator implementation
Trait Implementations§
§impl Debug for SimpleThreadCoordinator
impl Debug for SimpleThreadCoordinator
§impl ThreadCoordinator for SimpleThreadCoordinator
impl ThreadCoordinator for SimpleThreadCoordinator
§fn create_barrier(
&self,
count: usize,
) -> Result<Box<dyn ThreadBarrier>, NerveError>
fn create_barrier( &self, count: usize, ) -> Result<Box<dyn ThreadBarrier>, NerveError>
Create a thread barrier
§fn create_condition(&self) -> Result<Box<dyn ThreadCondition>, NerveError>
fn create_condition(&self) -> Result<Box<dyn ThreadCondition>, NerveError>
Create a thread condition variable
§fn coordinate_startup(&self) -> Result<(), NerveError>
fn coordinate_startup(&self) -> Result<(), NerveError>
Coordinate thread startup
§fn coordinate_shutdown(&self) -> Result<(), NerveError>
fn coordinate_shutdown(&self) -> Result<(), NerveError>
Coordinate thread shutdown
§fn status(&self) -> CoordinationStatus
fn status(&self) -> CoordinationStatus
Get coordination status
Auto Trait Implementations§
impl Freeze for SimpleThreadCoordinator
impl RefUnwindSafe for SimpleThreadCoordinator
impl Send for SimpleThreadCoordinator
impl Sync for SimpleThreadCoordinator
impl Unpin for SimpleThreadCoordinator
impl UnwindSafe for SimpleThreadCoordinator
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