Skip to content

Commit ec69a85

Browse files
committed
No longer put wasm condvars in a box.
These condvars are just an AtomicUsize, so can be moved without problems.
1 parent 7f56a35 commit ec69a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/wasm/condvar_atomics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub struct Condvar {
99
cnt: AtomicUsize,
1010
}
1111

12-
pub type MovableCondvar = Box<Condvar>;
12+
pub type MovableCondvar = Condvar;
1313

1414
// Condition variables are implemented with a simple counter internally that is
1515
// likely to cause spurious wakeups. Blocking on a condition variable will first

0 commit comments

Comments
 (0)