Skip to content

Commit

Permalink
Don't put hermit condvars in a box.
Browse files Browse the repository at this point in the history
Hermit condvars are movable.
  • Loading branch information
mkroening committed Jun 18, 2021
1 parent b70f934 commit 1f3c794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/hermit/condvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct Condvar {
sem2: *const c_void,
}

pub type MovableCondvar = Box<Condvar>;
pub type MovableCondvar = Condvar;

unsafe impl Send for Condvar {}
unsafe impl Sync for Condvar {}
Expand Down

0 comments on commit 1f3c794

Please sign in to comment.