pub struct Thread {
pub id: GlobalThreadId,
pub node_id: Option<NodeId>,
pub package_id: PackageId,
pub core_id: CoreId,
pub thread_id: ThreadId,
/* private fields */
}
Expand description
Represents an SMT thread in the system.
Fields
id: GlobalThreadId
ID the thread, global within a system.
node_id: Option<NodeId>
ID of the NUMA node (system global)
package_id: PackageId
ID of the package (system global)
core_id: CoreId
ID of the core
thread_id: ThreadId
ID of the thread (usually between 0..1)
Implementations
Trait Implementations
sourceimpl Ord for Thread
impl Ord for Thread
sourceimpl PartialOrd<Thread> for Thread
impl PartialOrd<Thread> for Thread
sourcefn partial_cmp(&self, other: &Thread) -> Option<Ordering>
fn partial_cmp(&self, other: &Thread) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Thread
Auto Trait Implementations
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnwindSafe for Thread
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more