Crate concurrency_traits[−][src]
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
StdThreadFunctions | Std implementations for |
Traits
ConcurrentSystem | A full concurrent system with all functions accessible by reference. This Trait should be implemented where possible. |
JoinableHandle | A handle to a spawned thread that can be joined infallibly. Auto-implemented with |
ResultThreadSpawner | Named version of |
ThreadFunctions | Functions to allow the current thread to interact in ways a thread might need to. |
ThreadHandle | A handle to a spawned thread. Analog for |
ThreadParker | Functions to allow parking functionality for threads. |
ThreadSpawner | Same as a |
ThreadTimeoutParker | Functions to allow parking functionality with timeout for threads. |
TimeFunctions | Functions to interact with system time. |
TryJoinableHandle | A handle to a spawned thread that can be joined, blocking the current thread until the target is finished. Analog for |
TryResultThreadSpawner | Named version of |
TryThreadSpawner | Functions to spawn new threads. If infallibility is required look to |