4 ms·
It's too bad that no standard method for a asynchronous events has been developed for Unix in general. Where I work, there's one single library for concurrency,
by houseabsolute 17y ago
It's too bad that no standard method for a asynchronous events has been developed for Unix in general. Where I work, there's one single library for concurrency, and every program or toolkit uses it. We do a lot of network programming, so it would be unthinkable for any performance intensive application to do blocking calls exclusively.
- silentbicycle 17y agolibevent tries to provide a common interface to select, poll, kselect (on BSD), epoll (on Linux), and comparable calls on Windows. It's not a standard part of Unix, of course, but it seems reasonably portable.
- houseabsolute 17y agoSure, but libraries underneath you have to cooperate for you to use it to the fullest potential. That no common means have been invented for that is what I'm sad about.
- silentbicycle 17y agoRight. Once you set up a non-blocking event loop, it's much simpler when you can go async all the way down.