compio-rs / compio

A thread-per-core Rust runtime with IOCP/io_uring/polling.
MIT License
420 stars 37 forks source link

Maintain squeue & cqueue manually in io-uring. #12

Closed Berrysoft closed 1 year ago

Berrysoft commented 1 year ago

Fixes #11

This is the easiest solution AFAIK. Maintain unbounded queues myself, and submit them in a loop. SegQueue is used because the linux signal may interrupt the thread and cause sync problems.

@redbaron Do you like this solution?