mitchellh / libxev

libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
MIT License
1.97k stars 65 forks source link

Potentially enhancing the MPSC queue #77

Closed tensorush closed 9 months ago

tensorush commented 9 months ago

Hi, @mitchellh!

I've noticed the MPSC queue implementation here is not as well-tested and fully-featured as it could be.

I've ported the same implementation to Zig, however, mainly guided by this cool C implementation which should be an improvement over the current one.

If you think it's worth contributing, I'd be happy to draft a PR!