Expand description
Thread pool for blocking operations
Structsยง
- Blocking
Pool ๐ - Inner ๐
- Locked
Impl ๐ - Single-mutex + condvar implementation.
- Locked
Inner ๐ - Spawner ๐
- Spawner
Metrics ๐ - Task ๐
- Thread
Management ๐State - Thread-management state used by every
InnerImplvariant.
Enumsยง
- Inner
Impl ๐ - Per-variant queue + notification + lock topology.
- Mandatory ๐
- Spawn
Error ๐
Constantsยง
- KEEP_
ALIVE ๐
Functionsยง
- is_
temporary_ ๐os_ thread_ error - spawn_
blocking ๐ - Runs the provided function on an executor dedicated to blocking operations. Tasks will be scheduled as non-mandatory, meaning they may not get executed in case of runtime shutdown.
- spawn_
mandatory_ ๐blocking - Runs the provided function on an executor dedicated to blocking
operations. Tasks will be scheduled as mandatory, meaning they are
guaranteed to run unless a shutdown is already taking place. In case a
shutdown is already taking place,
Nonewill be returned.
Type Aliasesยง
- Shutdown
Handles ๐ - State handed back from
InnerImpl::begin_shutdownto the caller so it can join the worker threads after the wait completes: an optional previously-timed-out worker, plus the map of currently-running workers.