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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user