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:
Mara Bos 2020-10-01 01:09:48 +02:00
parent 2f0386771d
commit 4f1353e54f

View File

@ -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.