mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +00:00
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:
parent
def5188ca8
commit
2f0386771d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user