1 | libev is modelled after libevent (http://monkey.org/~provos/libevent/), but aims |
1 | libev is modelled after libevent (http://monkey.org/~provos/libevent/), but aims |
2 | to be faster and more correct, and also more featureful. Examples: |
2 | to be faster and more correct, and also more featureful. Examples: |
3 | |
3 | |
4 | - multiple watchers can wait for the same event without deregistering others. |
4 | - multiple watchers can wait for the same event without deregistering others, |
|
|
5 | both for file descriptors as well as signals. |
5 | (registering two read events on fd 10 and unregistering one will not |
6 | (registering two read events on fd 10 and unregistering one will not |
6 | break the other) |
7 | break the other) |
7 | |
8 | |
8 | - fork() is supported and can be handled |
9 | - fork() is supported and can be handled |
9 | (there is no way to recover from a fork when libevent is active) |
10 | (there is no way to recover from a fork when libevent is active) |
… | |
… | |
19 | - detects time jumps and adjusts timers |
20 | - detects time jumps and adjusts timers |
20 | (works for both forward and backward time jumps and also for absolute timers) |
21 | (works for both forward and backward time jumps and also for absolute timers) |
21 | |
22 | |
22 | - can correctly remove timers while executing callbacks |
23 | - can correctly remove timers while executing callbacks |
23 | (libevent doesn't handle this reliably and can crash) |
24 | (libevent doesn't handle this reliably and can crash) |
|
|
25 | |
|
|
26 | - race-free signal processing |
|
|
27 | (libevent may delay processing signals till after the next event) |
24 | |
28 | |
25 | - less calls to epoll_ctl |
29 | - less calls to epoll_ctl |
26 | (stopping and starting an io watcher between two loop iterations will now |
30 | (stopping and starting an io watcher between two loop iterations will now |
27 | result in spuriois epoll_ctl calls) |
31 | result in spuriois epoll_ctl calls) |
28 | |
32 | |
… | |
… | |
51 | whats missing? |
55 | whats missing? |
52 | |
56 | |
53 | - evdns, evhttp, bufferevent are missing, libev is only an even library at |
57 | - evdns, evhttp, bufferevent are missing, libev is only an even library at |
54 | the moment. |
58 | the moment. |
55 | |
59 | |
56 | - no priority support at the moment. |
60 | - no priority support at the moment |
57 | |
61 | |
58 | - kqueue, poll (libev currently implements epoll and select). |
62 | - kqueue, poll (libev currently implements epoll and select) |
59 | |
63 | |
|
|
64 | - windows support (whats windows?) |
|
|
65 | |