mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
No longer put wasm mutexes in a box.
These mutexes are just an AtomicUsize, so can be moved without problems.
This commit is contained in:
parent
2f0386771d
commit
4f1353e54f
@ -8,7 +8,7 @@ pub struct Mutex {
|
||||
locked: AtomicUsize,
|
||||
}
|
||||
|
||||
pub type MovableMutex = Box<Mutex>;
|
||||
pub type MovableMutex = Mutex;
|
||||
|
||||
// Mutexes have a pretty simple implementation where they contain an `i32`
|
||||
// internally that is 0 when unlocked and 1 when the mutex is locked.
|
||||
|
Loading…
Reference in New Issue
Block a user