Struct sgx_tstd::thread::SgxThread [−][src]
pub struct SgxThread { /* fields omitted */ }
A handle to a thread.
Methods
impl SgxThread
[src]
impl SgxThread
pub fn id(&self) -> SgxThreadId
[src]
pub fn id(&self) -> SgxThreadId
Gets the thread's unique identifier.
pub fn unpark(&self)
[src]
pub fn unpark(&self)
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.