[][src]Module loom::thread

Mock implementation of std::thread.

Structs

AccessError

An error returned by LocalKey::try_with.

Builder

Thread factory, which can be used in order to configure the properties of a new thread.

JoinHandle

Mock implementation of std::thread::JoinHandle.

LocalKey

Mock implementation of std::thread::LocalKey.

Thread

Mock implementation of std::thread::Thread.

ThreadId

Mock implementation of std::thread::ThreadId.

Functions

current

Returns a handle to the current thread.

panicking

Determines whether the current thread is unwinding because of panic.

spawn

Mock implementation of std::thread::spawn.

yield_now

Yield the thread.