From c38c9268aecfda2cdc3e41b396d9ce75fef8441a Mon Sep 17 00:00:00 2001 From: Steve Heindel Date: Thu, 3 Oct 2024 21:13:22 -0400 Subject: [PATCH] Allow Send data in Mutex --- freertos-rust/src/mutex.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freertos-rust/src/mutex.rs b/freertos-rust/src/mutex.rs index 6e929e4..fb43eff 100644 --- a/freertos-rust/src/mutex.rs +++ b/freertos-rust/src/mutex.rs @@ -6,9 +6,9 @@ use crate::units::*; pub type Mutex = MutexImpl; pub type RecursiveMutex = MutexImpl; -unsafe impl Send for MutexImpl {} +unsafe impl Send for MutexImpl {} -unsafe impl Sync for MutexImpl {} +unsafe impl Sync for MutexImpl {} /// Mutual exclusion access to a contained value. Can be recursive - /// the current owner of a lock can re-lock it.