[−][src]Module sgx_tstd::thread
Native threads.
Structs
AccessError | An error returned by |
Builder | Thread factory, which can be used in order to configure the properties of a new thread. |
JoinHandle | An owned permission to join on a thread (block on its termination). |
LocalKey | |
SgxThread | A handle to a thread. |
ThreadId | A unique identifier for a running thread. |
__FastLocalKeyInner | |
__OsLocalKeyInner | |
__StaticLocalKeyInner |
Functions
current | Gets a handle to the thread that invokes it. |
current_td | |
panicking | Determines whether the current thread is unwinding because of panic. |
park | Blocks unless or until the current thread's token is made available. |
park_timeout | Blocks unless or until the current thread's token is made available or the specified duration has been reached (may wake spuriously). |
park_timeout_ms | Use |
rsgx_thread_equal | The rsgx_thread_equal function compares two thread identifiers. |
rsgx_thread_self | The rsgx_thread_self function returns the unique thread identification. |
sleep | Puts the current thread to sleep for at least the specified amount of time. |
sleep_ms | Puts the current thread to sleep for at least the specified amount of time. |
spawn | Spawns a new thread, returning a |
yield_now | Cooperatively gives up a timeslice to the OS scheduler. |
Type Definitions
Result | A specialized |