Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Oct 7, 2020
1 parent 060e8cb commit b3be11e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/std/src/sys/cloudabi/condvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ impl Condvar {

pub unsafe fn notify_one(&self) {
if self.condvar.load(Ordering::Relaxed) != abi::CONDVAR_HAS_NO_WAITERS.0 {
let ret = abi::condvar_signal(&self.condvar as *const AtomicU32 as *mut abi::condvar, abi::scope::PRIVATE, 1);
let ret = abi::condvar_signal(
&self.condvar as *const AtomicU32 as *mut abi::condvar,
abi::scope::PRIVATE,
1,
);
assert_eq!(ret, abi::errno::SUCCESS, "Failed to signal on condition variable");
}
}
Expand Down

0 comments on commit b3be11e

Please sign in to comment.