Don't put hermit mutexes in a box.

Hermit mutexes are movable.
This commit is contained in:
Martin Kröning 2021-06-13 17:22:02 +02:00 committed by Stefan Lankes
parent f45ebe459f
commit fffa88eb27

View file

@ -156,7 +156,7 @@ pub struct Mutex {
inner: Spinlock<MutexInner>, inner: Spinlock<MutexInner>,
} }
pub type MovableMutex = Box<Mutex>; pub type MovableMutex = Mutex;
unsafe impl Send for Mutex {} unsafe impl Send for Mutex {}
unsafe impl Sync for Mutex {} unsafe impl Sync for Mutex {}