Struct cloudabi::tid
[−]
[src]
#[repr(C)]pub struct tid(pub u32);
Unique system-local identifier of a thread. This identifier is only valid during the lifetime of the thread.
Threads must be aware of their thread identifier, as it is written it into locks when acquiring them for writing. It is not advised to use these identifiers for any other purpose.
As the thread identifier is also stored in lock
when
LOCK_WRLOCKED
is set, the top two bits of the thread
must always be set to zero.
Trait Implementations
impl Copy for tid
[src]
impl Clone for tid
[src]
fn clone(&self) -> tid
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for tid
[src]
impl PartialEq for tid
[src]
fn eq(&self, __arg_0: &tid) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &tid) -> bool
[src]
This method tests for !=
.
impl Hash for tid
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more