Don't put hermit condvars in a box.

Hermit condvars are movable.
This commit is contained in:
Martin Kröning 2021-06-13 17:22:17 +02:00 committed by Stefan Lankes
parent fe56e8961f
commit f45ebe459f

View File

@ -14,7 +14,7 @@ pub struct Condvar {
sem2: *const c_void, sem2: *const c_void,
} }
pub type MovableCondvar = Box<Condvar>; pub type MovableCondvar = Condvar;
unsafe impl Send for Condvar {} unsafe impl Send for Condvar {}
unsafe impl Sync for Condvar {} unsafe impl Sync for Condvar {}