swift-system
swift-system copied to clipboard
[IO_URING] Add support for `pollAdd` operation
Motivation
To observe events on file descriptors IO_URING supports the pollAdd operation. This is useful when you want to observe a file descriptor becoming ready to read or write
Modifications
This PR adds a new IORing.Request.PollEvents option set to model the poll masks. Furthermore, it adds a new static func pollAdd to the IORing.Request.
Result
We can now use IO_URING to poll for events on file descriptors.
@swift-ci please test
@swift-ci please test
@swift-ci please test