No longer put wasm condvars in a box.
These condvars are just an AtomicUsize, so can be moved without problems.
This commit is contained in:
parent
7f56a35411
commit
ec69a858e4
|
@ -9,7 +9,7 @@ pub struct Condvar {
|
||||||
cnt: AtomicUsize,
|
cnt: AtomicUsize,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type MovableCondvar = Box<Condvar>;
|
pub type MovableCondvar = Condvar;
|
||||||
|
|
||||||
// Condition variables are implemented with a simple counter internally that is
|
// Condition variables are implemented with a simple counter internally that is
|
||||||
// likely to cause spurious wakeups. Blocking on a condition variable will first
|
// likely to cause spurious wakeups. Blocking on a condition variable will first
|
||||||
|
|
Loading…
Reference in New Issue