mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
Formatting.
This commit is contained in:
@@ -28,7 +28,11 @@ pub unsafe fn init(&mut self) {}
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user