Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use std::AtomicPtr and std::AtomicU8 #5071

Merged
merged 4 commits into from Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion tokio/src/loom/std/atomic_ptr.rs
@@ -1,7 +1,6 @@
use std::fmt;
use std::ops::{Deref, DerefMut};

/// `AtomicPtr` providing an additional `load_unsync` function.
xudong963 marked this conversation as resolved.
Show resolved Hide resolved
pub(crate) struct AtomicPtr<T> {
inner: std::sync::atomic::AtomicPtr<T>,
}
Expand Down
2 changes: 1 addition & 1 deletion tokio/src/loom/std/atomic_u16.rs
Expand Up @@ -2,7 +2,7 @@ use std::cell::UnsafeCell;
use std::fmt;
use std::ops::Deref;

/// `AtomicU16` providing an additional `load_unsync` function.
/// `AtomicU16` providing an additional `unsync_load` function.
pub(crate) struct AtomicU16 {
inner: UnsafeCell<std::sync::atomic::AtomicU16>,
}
Expand Down
1 change: 0 additions & 1 deletion tokio/src/loom/std/atomic_u32.rs
Expand Up @@ -2,7 +2,6 @@ use std::cell::UnsafeCell;
use std::fmt;
use std::ops::Deref;

/// `AtomicU32` providing an additional `load_unsync` function.
xudong963 marked this conversation as resolved.
Show resolved Hide resolved
pub(crate) struct AtomicU32 {
inner: UnsafeCell<std::sync::atomic::AtomicU32>,
}
Expand Down
1 change: 0 additions & 1 deletion tokio/src/loom/std/atomic_u8.rs
Expand Up @@ -2,7 +2,6 @@ use std::cell::UnsafeCell;
use std::fmt;
use std::ops::Deref;

/// `AtomicU8` providing an additional `load_unsync` function.
xudong963 marked this conversation as resolved.
Show resolved Hide resolved
pub(crate) struct AtomicU8 {
inner: UnsafeCell<std::sync::atomic::AtomicU8>,
}
Expand Down
2 changes: 1 addition & 1 deletion tokio/src/loom/std/atomic_usize.rs
Expand Up @@ -2,7 +2,7 @@ use std::cell::UnsafeCell;
use std::fmt;
use std::ops;

/// `AtomicUsize` providing an additional `load_unsync` function.
/// `AtomicUsize` providing an additional `unsync_load` function.
pub(crate) struct AtomicUsize {
inner: UnsafeCell<std::sync::atomic::AtomicUsize>,
}
Expand Down