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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for tid
[src]

impl PartialEq for tid
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for tid
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for tid
[src]

[src]

Formats the value using the given formatter.