1
0
forked from ROMEO/nexosim

Add send bound for Clock trait

This commit is contained in:
Robin Müller 2024-03-06 12:27:34 +01:00
parent 7e881afb63
commit 47af3455ff
Signed by untrusted user: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -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;
} }