pub struct ThreadData {
pub clear_child_tid: AtomicUsize,
}
Expand description
Extended data for [Thread
].
Fields§
§clear_child_tid: AtomicUsize
The clear thread tid field
See https://manpages.debian.org/unstable/manpages-dev/set_tid_address.2.en.html#clear_child_tid
When the thread exits, the kernel clears the word at this address if it is not NULL.
Implementations§
Source§impl ThreadData
impl ThreadData
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ThreadData
.
Sourcepub fn clear_child_tid(&self) -> usize
pub fn clear_child_tid(&self) -> usize
Get the clear child tid field.
Sourcepub fn set_clear_child_tid(&self, clear_child_tid: usize)
pub fn set_clear_child_tid(&self, clear_child_tid: usize)
Set the clear child tid field.
Auto Trait Implementations§
impl !Freeze for ThreadData
impl RefUnwindSafe for ThreadData
impl Send for ThreadData
impl Sync for ThreadData
impl Unpin for ThreadData
impl UnwindSafe for ThreadData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more