From 47af3455ff5d425883c0b37f2e23ca3f325733b0 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 6 Mar 2024 12:27:34 +0100 Subject: [PATCH] Add send bound for Clock trait --- asynchronix/src/time/clock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asynchronix/src/time/clock.rs b/asynchronix/src/time/clock.rs index 816bcb5..54a7f95 100644 --- a/asynchronix/src/time/clock.rs +++ b/asynchronix/src/time/clock.rs @@ -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; }