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
1 changed files with 1 additions and 1 deletions

View File

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