smol-rs / polling

Portable interface to epoll, kqueue, event ports, and wepoll
Apache License 2.0
551 stars 68 forks source link

RedoxOS Support #176

Closed notgull closed 8 months ago

notgull commented 9 months ago

x86_64-unknown-redox supports event schemes which are apparently the preferred way to poll for events. However I can't find any documentation that indicates how stable it is.

It also supports epoll, but this isn't exposed in rustix yet.

rw-vanc commented 9 months ago

Event schemes are quite stable and are used extensively in Redox. However, they are very Redox-specific. epoll will be a perfectly fine way to go in the short term. When we are ready to do a full Redox-Rustix, we will use the Rust-only parts of relibc (Redox's libc implementation) as a base.

jackpot51 commented 9 months ago

epoll in redox is a very thin and efficient wrapper around the Redox event scheme, so it is best to use that.