Expand description
Traits for concurrent primitives.
Modules§
- mutex
- Generic Mutex traits and implementations.
- queue
- Generic implementations for queues.
- rw_lock
- Traits for RwLocks
- semaphore
- Traits and implementations for semaphores.
- stack
- Traits for a FIFO stack.
Structs§
- StdThread
Functions - Std implementations for
TimeFunctions
, [ThreadFunctions], [
TryThreadSpawner], and [
ThreadParker`].
Traits§
- Concurrent
System - A full concurrent system with all functions accessible by reference. This Trait should be implemented where possible.
- Joinable
Handle - A handle to a spawned thread that can be joined infallibly. Auto-implemented with
TryJoinableHandle
where possible. - Result
Thread Spawner - Named version of
ThreadSpawner
where the handle is aTryJoinableHandle
. Auto implemented. - Thread
Functions - Functions to allow the current thread to interact in ways a thread might need to.
- Thread
Handle - A handle to a spawned thread. Analog for
std::thread::JoinHandle
. - Thread
Parker - Functions to allow parking functionality for threads.
- Thread
Spawner - Same as a
TryThreadSpawner
with anInfallible
TryThreadSpawner::SpawnError
. This is auto-implemented withTryThreadSpawner
when possible. If a result is needed from the launched thread look toResultThreadSpawner
. - Thread
Timeout Parker - Functions to allow parking functionality with timeout for threads.
- Time
Functions - Functions to interact with system time.
- TryJoinable
Handle - A handle to a spawned thread that can be joined, blocking the current thread until the target is finished. Analog for
std::thread::JoinHandle
. If infallibility is needed look toJoinableHandle
. - TryResult
Thread Spawner - Named version of
TryThreadSpawner
where the handle is aTryJoinableHandle
. Auto implemented. - TryThread
Spawner - Functions to spawn new threads. If infallibility is required look to
ThreadSpawner
. If a result is needed from the launched thread look toTryResultThreadSpawner
orResultThreadSpawner
.O
is the result of the thread function.