Skip to content

Commit

Permalink
Allow Send data in Mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
schteve committed Oct 4, 2024
1 parent 953b580 commit c38c926
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 c38c926

Please sign in to comment.