pub struct QueueConfig {
pub depth: u32,
pub parallel: bool,
pub pool_threads: u32,
pub owner: Owner,
}Expand description
Per-queue configuration.
Fields§
§depth: u32Maximum operations in flight.
parallel: boolA hint that the caller submits several independent operations before
it waits. A backend that would otherwise run them one by one inside
submit (the Linux synchronous tier) may then run them concurrently
on worker threads. false (the default) keeps every operation on the
calling thread: the Linux backend then performs each inside submit
on either tier, since a caller that waits for every operation gains
nothing from a ring (D-104).
pool_threads: u32Worker threads for the backend’s shared pool, used only if this queue is the one that starts it (0 = the backend’s default; a backend may cap it). A pool already running is never resized; the backend reports its size.
owner: OwnerWho uses the queue: one thread for its whole life, or any thread that borrows it (D-081, D-083). A backend may set the queue up differently for each (a thread-owned io_uring ring); others ignore it.