1
0
forked from ROMEO/nexosim

Merge pull request #15 from us-irs/feature/clock-send-bound

Add send bound for Clock trait
This commit is contained in:
Serge Barral 2024-03-06 14:48:30 +01:00 committed by GitHub
commit 43e41012d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ use crate::time::MonotonicTime;
///
/// A clock can be associated to a simulation at initialization time by calling
/// [`SimInit::init_with_clock()`](crate::simulation::SimInit::init_with_clock).
pub trait Clock {
pub trait Clock: Send {
/// Blocks until the deadline.
fn synchronize(&mut self, deadline: MonotonicTime) -> SyncStatus;
}