Crate underhill_threadpool

Source
Expand description

The Underhill per-CPU thread pool used to run async tasks and IO.

This is built on top of [pal_uring] and [pal_async].

Structs§

AffinitizedThreadpool
A pool of affinitized worker threads.
RetargetableDriver
A driver for AffinitizedThreadpool that can be retargeted to different CPUs.
TaskInfo
Information about a task that caused a thread to spawn.
Thread
The state for the thread pool thread for the currently running CPU.
ThreadpoolBuilder
A builder for AffinitizedThreadpool.
ThreadpoolDriver
A driver for AffinitizedThreadpool that is targeted at a specific CPU.

Enums§

SetAffinityError
An error that can occur when setting the affinity of a thread.

Functions§

is_cpu_online
Returns whether the specified CPU is online.
set_cpu_online
Sets the specified CPU online, if it is not already online.