Trait SyncSubDomains
pub trait SyncSubDomains {
// Required methods
fn sync(&mut self) -> Result<(), SimulationError>;
fn store_error(
&mut self,
maybe_error: Result<(), SimulationError>,
) -> Result<bool, SimulationError>;
}
Available on crate feature
chili
only.Expand description
Responsible for syncing the simulation between different threads.
Required Methods§
fn sync(&mut self) -> Result<(), SimulationError>
fn sync(&mut self) -> Result<(), SimulationError>
Function which forces connected syncers to wait for each other. This approach does not necessarily require all threads to wait but can mean that only depending threads wait for each other.
fn store_error(
&mut self,
maybe_error: Result<(), SimulationError>,
) -> Result<bool, SimulationError>
fn store_error( &mut self, maybe_error: Result<(), SimulationError>, ) -> Result<bool, SimulationError>
TODO