1 | libev is modelled after libevent (http://monkey.org/~provos/libevent/), but aims |
1 | libev is modelled (very losely) after libevent |
|
|
2 | (http://monkey.org/~provos/libevent/), but aims to be faster and more |
2 | to be faster and more correct, and also more featureful. Examples: |
3 | correct, and also more featureful. Examples: |
3 | |
4 | |
4 | (comparisons relative to libevent-1.3e and libev-0.00) |
5 | (comparisons relative to libevent-1.3e and libev-0.00) |
5 | |
6 | |
6 | - multiple watchers can wait for the same event without deregistering others, |
7 | - multiple watchers can wait for the same event without deregistering others, |
7 | both for file descriptors as well as signals. |
8 | both for file descriptors as well as signals. |
… | |
… | |
54 | (in libevent, backends have to deal with watchers, thus the problems) |
55 | (in libevent, backends have to deal with watchers, thus the problems) |
55 | (epoll backend in libevent: 366 lines, libev: 90 lines, and more features) |
56 | (epoll backend in libevent: 366 lines, libev: 90 lines, and more features) |
56 | |
57 | |
57 | - libev handles EBADF gracefully by removing the offending fds. |
58 | - libev handles EBADF gracefully by removing the offending fds. |
58 | |
59 | |
|
|
60 | - doesn't rely on nonportable BSD header files. |
|
|
61 | |
59 | whats missing? |
62 | whats missing? |
60 | |
63 | |
61 | - evdns, evhttp, bufferevent are missing, libev is only an even library at |
64 | - evdns, evhttp, bufferevent are missing, libev is only an even library at |
62 | the moment. |
65 | the moment. |
63 | |
66 | |