3 ms·
UI events are I/O...
by kentonv 12y ago
UI events are I/O...
- adamnemecek 12y agoYou are not talking about UI events in the blog post. You are saying that there isn't a unified Windows API similar to kqueue or epoll that can be used for async file/stream I/O with which I disagree. AFAIK you can't use epoll to do UI events either.
- kentonv 12y agoX events are delivered via a socket. You can absolutely epoll that, and people in fact do so, and this is considered an essential feature.
- jmgao 12y agoOne of the best features of all of the epoll/poll/select functions is that they let you listen on arbitrary file descriptors uniformly. You can send events over a unix domain socket or a pipe, and just treat it as if it were a regular file. It's especially useful with stuff like signalfd or timerfd, where you can listen on sockets, handle signals, and have a timeout, with barely any additional code.
- adamnemecek 12y agothis is unrelated to the topic at hand.