Module executors::parker [−][src]
A reusable thread-pool-parking mechanism.
This module is mostly meant for internal use within this crate, but could be used to build custom thread-pools as well.
Structs
DynParker | A trait-object-like wrapper around a concrete parker instance |
DynamicThreadData | Park state for an unbounded number of threads |
LargeThreadData | Parker state for up to 64 threads |
SmallThreadData | Parker state large enough for up to 32 threads |
StaticParker | A concrete parker instance |
Enums
ParkResult | Indicates the return condition from a park attempt. |
Traits
Parker | The core trait that every parker implementation must provide |
ThreadData | A trait that manages the internal state of a parker implementation |
Functions
dynamic | Get a parker for an unbounded number of threads |
large | Get a parker for up to 64 threads |
small | Get a parker for up to 32 threads |