boost::corosio::io_context_options
Runtime tuning options for io_context.
Synopsis
Declared in <boost/corosio/io_context.hpp>
struct io_context_options;
Description
All fields have defaults that match the library's built‐in values, so constructing a default io_context_options produces identical behavior to an unconfigured context.
Options that apply only to a specific backend family are silently ignored when the active backend does not support them.
Example
io_context_options opts;
opts.max_events_per_poll = 256; // larger batch per syscall
opts.inline_budget_max = 32; // more speculative completions
opts.thread_pool_size = 4; // more file-I/O workers
io_context ioc(opts);
Data Members
Name |
Description |
Enable IORING_SETUP_SQPOLL on the io_uring backend. |
|
Maximum |
|
Starting inline completion budget per handler chain. |
|
Hard ceiling on adaptive inline budget ramp‐up. |
|
Maximum events fetched per reactor poll call. |
|
Enable single‐threaded mode (disable scheduler locking). |
|
Pin the SQ‐poll kernel thread to this CPU. |
|
SQ‐poll idle timeout in milliseconds. |
|
Thread pool size for blocking I/O (file I/O, DNS resolution). |
|
Inline budget when no other thread assists the reactor. |
See Also
io_context, native_io_context
Created with MrDocs