[][src]Struct sgx_tstd::thread::SgxThread

pub struct SgxThread { /* fields omitted */ }

A handle to a thread.

Methods

impl SgxThread[src]

pub fn unpark(&self)[src]

Atomically makes the handle's token available if it is not already.

Every thread is equipped with some basic low-level blocking support, via the park function and the unpark() method. These can be used as a more CPU-efficient implementation of a spinlock.

pub fn id(&self) -> ThreadId[src]

Gets the thread's unique identifier.

pub fn name(&self) -> Option<&str>[src]

Gets the thread's name.

For more information about named threads, see [this module-level documentation][naming-threads].

Trait Implementations

impl Clone for SgxThread[src]

impl Debug for SgxThread[src]

Auto Trait Implementations

impl !RefUnwindSafe for SgxThread

impl Send for SgxThread

impl Sync for SgxThread

impl Unpin for SgxThread

impl !UnwindSafe for SgxThread

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.