By far the best interface to an event loop. Alot of people will say
don't use this because of memory leaks etc, honestly I've built huge apps with it and not 1 memory leak, just install latest versions of eventlib c library. Only issue I did run into was writing to same filedescriptor many times without reading a response back first, just don't do that! This is definately the best event module. Benefits of using this over EV, all your loops support signals, timers and you can use EV_TIMEOUT on sockets, all the things the EV author neglected to do, just wonderful module. Works great with fork to, just wrap the single loop in a while loop, fork and use the main_loop in the child, reinstall different signal callbacks, watchers etc you want in child, just wonderful. Don't forget to remove any parent watchers while in the child.
If that is not enough, it will even default to kqueue on freebsd, epoll on linux etc, allowing you to support tons of connections over traditional select call. With EV module I had to fight to get kqueue to work with a new loop, and even then I couldn't install signals or anything except in default loop, use this you will not be sorry!
3 out of 3 found this review helpful. Was this review helpful to you? Yes No