From 94c5249430421057b208c25a1a709ab5e89dd0e3 Mon Sep 17 00:00:00 2001 From: Steve Heindel Date: Tue, 15 Oct 2024 20:47:05 -0400 Subject: [PATCH] Allow Send data in Mutex (#79) --- 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.