Skip to content

Commit

Permalink
Allow Send data in Mutex (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
schteve authored Oct 16, 2024
1 parent 21b753c commit 94c5249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freertos-rust/src/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use crate::units::*;
pub type Mutex<T> = MutexImpl<T, MutexNormal>;
pub type RecursiveMutex<T> = MutexImpl<T, MutexRecursive>;

unsafe impl<T: Sync + Send, M> Send for MutexImpl<T, M> {}
unsafe impl<T: Send, M> Send for MutexImpl<T, M> {}

unsafe impl<T: Sync + Send, M> Sync for MutexImpl<T, M> {}
unsafe impl<T: Send, M> Sync for MutexImpl<T, M> {}

/// Mutual exclusion access to a contained value. Can be recursive -
/// the current owner of a lock can re-lock it.
Expand Down

0 comments on commit 94c5249

Please sign in to comment.