Skip to content

Commit

Permalink
Merge pull request #15 from us-irs/feature/clock-send-bound
Browse files Browse the repository at this point in the history
Add send bound for Clock trait
  • Loading branch information
sbarral authored Mar 6, 2024
2 parents 7e881af + 47af345 commit 43e4101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asynchronix/src/time/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 43e4101

Please sign in to comment.