Skip to content

Commit 94c5249

Browse files
authored
Allow Send data in Mutex (#79)
1 parent 21b753c commit 94c5249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

freertos-rust/src/mutex.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use crate::units::*;
66
pub type Mutex<T> = MutexImpl<T, MutexNormal>;
77
pub type RecursiveMutex<T> = MutexImpl<T, MutexRecursive>;
88

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

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

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

0 commit comments

Comments
 (0)