forked from ROMEO/nexosim
Add send bound for Clock trait
This commit is contained in:
parent
7e881afb63
commit
47af3455ff
@ -9,7 +9,7 @@ use crate::time::MonotonicTime;
|
|||||||
///
|
///
|
||||||
/// A clock can be associated to a simulation at initialization time by calling
|
/// A clock can be associated to a simulation at initialization time by calling
|
||||||
/// [`SimInit::init_with_clock()`](crate::simulation::SimInit::init_with_clock).
|
/// [`SimInit::init_with_clock()`](crate::simulation::SimInit::init_with_clock).
|
||||||
pub trait Clock {
|
pub trait Clock: Send {
|
||||||
/// Blocks until the deadline.
|
/// Blocks until the deadline.
|
||||||
fn synchronize(&mut self, deadline: MonotonicTime) -> SyncStatus;
|
fn synchronize(&mut self, deadline: MonotonicTime) -> SyncStatus;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user