|
Condy v1.9
C++ Asynchronous System Call Layer for Linux
|
#include <runtime_options.hpp>
Public Member Functions | |
| Self & | event_interval (size_t v) |
| Set event interval. | |
| Self & | disable_register_ring_fd () |
| Disable register ring fd. | |
| Self & | enable_iopoll () |
| See IORING_SETUP_IOPOLL. | |
| Self & | enable_sqpoll (size_t idle_time_ms=1000, std::optional< uint32_t > cpu=std::nullopt) |
| See IORING_SETUP_SQPOLL. | |
| Self & | enable_defer_taskrun () |
| See IORING_SETUP_DEFER_TASKRUN and IORING_SETUP_TASKRUN_FLAG. | |
| Self & | sq_size (size_t v) |
| Set SQ size. | |
| Self & | cq_size (size_t v) |
| Set CQ size. | |
| Self & | submit_batch (size_t v) |
| Set batch size for operation submission. | |
| Self & | enable_attach_wq (Runtime &other) |
| See IORING_SETUP_ATTACH_WQ. | |
| Self & | enable_coop_taskrun () |
| See IORING_SETUP_COOP_TASKRUN and IORING_SETUP_TASKRUN_FLAG. | |
| Self & | enable_sqe128 () |
| See IORING_SETUP_SQE128. | |
| Self & | enable_cqe32 () |
| See IORING_SETUP_CQE32. | |
Runtime options.
Options for configuring the behavior of a Runtime instance. Most of them are io_uring setup options. These options should be set before creating the Runtime instance.
Definition at line 23 of file runtime_options.hpp.
|
inline |
|
inline |
Disable register ring fd.
By default, the runtime registers the ring file descriptor with the kernel for performance optimization. This option disables that behavior.
Definition at line 48 of file runtime_options.hpp.
|
inline |
See IORING_SETUP_ATTACH_WQ.
This option allows the current runtime to share the async worker thread backend with another runtime.
| other | The other runtime to attach to. |
Definition at line 148 of file runtime_options.hpp.
|
inline |
See IORING_SETUP_COOP_TASKRUN and IORING_SETUP_TASKRUN_FLAG.
Definition at line 157 of file runtime_options.hpp.
|
inline |
See IORING_SETUP_DEFER_TASKRUN and IORING_SETUP_TASKRUN_FLAG.
Definition at line 103 of file runtime_options.hpp.
|
inline |
See IORING_SETUP_SQPOLL.
| idle_time_ms | Idle time in milliseconds for the sqpoll thread |
| cpu | CPU affinity for the sqpoll thread |
Definition at line 80 of file runtime_options.hpp.
|
inline |
Set event interval.
The event interval determines how often the runtime checks for completed events.
| v | The event interval value |
Definition at line 33 of file runtime_options.hpp.
|
inline |