Function workctl::sync_flag::new_syncflag [−][src]
pub fn new_syncflag(initial_state: bool) -> (SyncFlagTx, SyncFlagRx)
Create a new SyncFlagTx
and SyncFlagRx
that can be used to share a bool
across a number of threads.