Skip to content

Commit aadefd8

Browse files
committed
Revert "Adjust atomics in the lio_listio doc test"
As these changes are not necessary
1 parent ece6909 commit aadefd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sys/aio.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)