Skip to content

Commit

Permalink
No longer put windows condvars in a box.
Browse files Browse the repository at this point in the history
Windows condition variables are movable (while not borrowed) according
to their documentation.
  • Loading branch information
m-ou-se committed Oct 2, 2020
1 parent ec69a85 commit f3837e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/condvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct Condvar {
inner: UnsafeCell<c::CONDITION_VARIABLE>,
}

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 f3837e7

Please sign in to comment.