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
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ pub struct Mutex {
|
||||||
locked: AtomicUsize,
|
locked: AtomicUsize,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type MovableMutex = Box<Mutex>;
|
pub type MovableMutex = Mutex;
|
||||||
|
|
||||||
// Mutexes have a pretty simple implementation where they contain an `i32`
|
// Mutexes have a pretty simple implementation where they contain an `i32`
|
||||||
// internally that is 0 when unlocked and 1 when the mutex is locked.
|
// internally that is 0 when unlocked and 1 when the mutex is locked.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue