No longer put mutexes on the 'unsupported' platform in a box.

These mutexes are just a bool (in a cell), so can be moved without
problems.
This commit is contained in:
Mara Bos 2020-10-01 01:08:51 +02:00
parent def5188ca8
commit 2f0386771d

View File

@ -4,7 +4,7 @@ pub struct Mutex {
locked: UnsafeCell<bool>, locked: UnsafeCell<bool>,
} }
pub type MovableMutex = Box<Mutex>; pub type MovableMutex = Mutex;
unsafe impl Send for Mutex {} unsafe impl Send for Mutex {}
unsafe impl Sync for Mutex {} // no threads on this platform unsafe impl Sync for Mutex {} // no threads on this platform