File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1176,12 +1176,12 @@ pub fn aio_suspend(
11761176/// pub static SIGNALED: AtomicBool = AtomicBool::new(false);
11771177///
11781178/// extern fn sigfunc(_: c_int) {
1179- /// SIGNALED.store(true, Ordering::Release );
1179+ /// SIGNALED.store(true, Ordering::Relaxed );
11801180/// }
11811181/// let sa = SigAction::new(SigHandler::Handler(sigfunc),
11821182/// SaFlags::SA_RESETHAND,
11831183/// SigSet::empty());
1184- /// SIGNALED.store(false, Ordering::Release );
1184+ /// SIGNALED.store(false, Ordering::Relaxed );
11851185/// unsafe { sigaction(Signal::SIGUSR2, &sa) }.unwrap();
11861186///
11871187/// const WBUF: &[u8] = b"abcdef123456";
@@ -1195,7 +1195,7 @@ pub fn aio_suspend(
11951195/// ));
11961196/// let sev = SigevNotify::SigevSignal { signal: Signal::SIGUSR2, si_value: 0 };
11971197/// lio_listio(LioMode::LIO_NOWAIT, &mut[aiow.as_mut()], sev).unwrap();
1198- /// while !SIGNALED.load(Ordering::Acquire ) {
1198+ /// while !SIGNALED.load(Ordering::Relaxed ) {
11991199/// thread::sleep(time::Duration::from_millis(10));
12001200/// }
12011201/// // At this point, since `lio_listio` returned success and delivered its
You can’t perform that action at this time.
0 commit comments