Struct JoinHandle
Source pub struct JoinHandlewhere
Self: 'static,
{
pub tid: u64,
exit_status: Arc<AtomicU64>,
running_cpu: Arc<AtomicI32>,
}
Expand description
Thread id of this handle.
Make a join handle for Thread th.
Join this handle and returns exit code.
Get scheudled cpu id of the underlying thread.
If the thread is not runnig, returns None.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.