Expand description
Shuttle’s implementation of std::thread
.
Structs§
- An error returned by
LocalKey::try_with
- Thread factory, which can be used in order to configure the properties of a new thread.
- An owned permission to join on a thread (block on its termination).
- A thread local storage key which owns its contents
- A handle to a thread.
- A unique identifier for a running thread
Functions§
- Get a handle to the thread that invokes it
- Blocks unless or until the current thread’s token is made available (may wake spuriously).
- Blocks unless or until the current thread’s token is made available or the specified duration has been reached (may wake spuriously).
- Puts the current thread to sleep for at least the specified amount of time.
- Spawn a new thread, returning a JoinHandle for it.
- Cooperatively gives up a timeslice to the Shuttle scheduler.