1 | Revision history for libev, a high-performance and full-featured event loop. |
1 | Revision history for libev, a high-performance and full-featured event loop. |
2 | |
2 | |
3 | TODO: ABI??? API????? Changes??? |
3 | TODO: ev_loop_wakeup |
4 | TODO: win32 write() to socket for signal handling |
4 | TODO: EV_STANDALONE == NO_HASSEL (do not use clock_gettime in ev_standalone) |
5 | TODO: poll asert |
5 | |
6 | TODO: EV_USE__XXX default with config, document |
6 | TODO: document WSA_EV_USE_SOCKET in win32 part |
|
|
7 | TODO: ^ OR use WSASend/WSARecv on the handle, which always works |
|
|
8 | TODO: use __OPTIMIZE__ or __OPTIMIZE_SIZE__? |
|
|
9 | |
|
|
10 | TODO: Jeff Davey libev patch |
|
|
11 | - ev_once: undef EV_ERROR in ev_kqueue.c, to avoid clashing with |
|
|
12 | libev's EV_ERROR (reported by 191919). |
|
|
13 | - (ecb) add memory fence support for xlC (Darin McBride). |
|
|
14 | - (ecb) add memory fence support for gcc-mips (Anton Kirilov). |
|
|
15 | - work around some kernels losing file descriptors by leaking |
|
|
16 | the kqueue descriptor in the child. |
|
|
17 | |
|
|
18 | 4.11 Sat Feb 4 19:52:39 CET 2012 |
|
|
19 | - INCOMPATIBLE CHANGE: ev_timer_again now clears the pending status, as |
|
|
20 | was documented already, but not implemented in the repeating case. |
|
|
21 | - new compiletime symbols: EV_NO_SMP and EV_NO_THREADS. |
|
|
22 | - fix a race where the workaround against the epoll fork bugs |
|
|
23 | caused signals to not be handled anymore. |
|
|
24 | - correct backend_fudge for most backends, and implement a windows |
|
|
25 | specific workaround to avoid looping because we call both |
|
|
26 | select and Sleep, both with different time resolutions. |
|
|
27 | - document range and guarantees of ev_sleep. |
|
|
28 | - document reasonable ranges for periodics interval and offset. |
|
|
29 | - rename backend_fudge to backend_mintime to avoid future confusion :) |
|
|
30 | - change the default periodic reschedule function to hopefully be more |
|
|
31 | exact and correct even in corner cases or in the far future. |
|
|
32 | - do not rely on -lm anymore: use it when available but use our |
|
|
33 | own floor () if it is missing. This should make it easier to embed, |
|
|
34 | as no external libraries are required. |
|
|
35 | - strategically import macros from libecb and mark rarely-used functions |
|
|
36 | as cache-cold (saving almost 2k code size on typical amd64 setups). |
|
|
37 | - add Symbols.ev and Symbols.event files, that were missing. |
|
|
38 | - fix backend_mintime value for epoll (was 1/1024, is 1/1000 now). |
|
|
39 | - fix #3 "be smart about timeouts" to not "deadlock" when |
|
|
40 | timeout == now, also improve the section overall. |
|
|
41 | - avoid "AVOIDING FINISHING BEFORE RETURNING" idiom. |
|
|
42 | - support new EV_API_STATIC mode to make all libev symbols |
|
|
43 | static. |
|
|
44 | - supply default CFLAGS of -g -O3 with gcc when original CFLAGS |
|
|
45 | were empty. |
|
|
46 | |
|
|
47 | 4.04 Wed Feb 16 09:01:51 CET 2011 |
|
|
48 | - fix two problems in the native win32 backend, where reuse of fd's |
|
|
49 | with different underlying handles caused handles not to be removed |
|
|
50 | or added to the select set (analyzed and tested by Bert Belder). |
|
|
51 | - do no rely on ceil() in ev_e?poll.c. |
|
|
52 | - backport libev to HP-UX versions before 11 v3. |
|
|
53 | - configure did not detect nanosleep and clock_gettime properly when |
|
|
54 | they are available in the libc (as opposed to -lrt). |
|
|
55 | |
|
|
56 | 4.03 Tue Jan 11 14:37:25 CET 2011 |
|
|
57 | - officially support polling files with all backends. |
|
|
58 | - support files, /dev/zero etc. the same way as select in the epoll |
|
|
59 | backend, by generating events on our own. |
|
|
60 | - ports backend: work around solaris bug 6874410 and many related ones |
|
|
61 | (EINTR, maybe more), with no performance loss (note that the solaris |
|
|
62 | bug report is actually wrong, reality is far more bizarre and broken |
|
|
63 | than that). |
|
|
64 | - define EV_READ/EV_WRITE as macros in event.h, as some programs use |
|
|
65 | #ifdef to test for them. |
|
|
66 | - new (experimental) function: ev_feed_signal. |
|
|
67 | - new (to become default) EVFLAG_NOSIGMASK flag. |
|
|
68 | - new EVBACKEND_MASK symbol. |
|
|
69 | - updated COMMON IDIOMS SECTION. |
|
|
70 | |
|
|
71 | 4.01 Fri Nov 5 21:51:29 CET 2010 |
|
|
72 | - automake fucked it up, apparently, --add-missing -f is not quite enough |
|
|
73 | to make it update its files, so 4.00 didn't install ev++.h and |
|
|
74 | event.h on make install. grrr. |
|
|
75 | - ev_loop(count|depth) didn't return anything (Robin Haberkorn). |
|
|
76 | - change EV_UNDEF to 0xffffffff to silence some overzealous compilers. |
|
|
77 | - use "(libev) " prefix for all libev error messages now. |
|
|
78 | |
|
|
79 | 4.00 Mon Oct 25 12:32:12 CEST 2010 |
7 | - "PORTING FROM LIBEV 3.X TO 4.X" (in ev.pod) is recommended reading. |
80 | - "PORTING FROM LIBEV 3.X TO 4.X" (in ev.pod) is recommended reading. |
8 | - ev_embed_stop did not correctly stop the watcher (very good |
81 | - ev_embed_stop did not correctly stop the watcher (very good |
9 | testcase by Vladimir Timofeev). |
82 | testcase by Vladimir Timofeev). |
|
|
83 | - ev_run will now always update the current loop time - it erroneously |
|
|
84 | didn't when idle watchers were active, causing timers not to fire. |
|
|
85 | - fix a bug where a timeout of zero caused the timer not to fire |
|
|
86 | in the libevent emulation (testcase by Péter Szabó). |
10 | - applied win32 fixes by Michael Lenaghan (also James Mansion). |
87 | - applied win32 fixes by Michael Lenaghan (also James Mansion). |
11 | - replace EV_MINIMAL by EV_FEATURES. |
88 | - replace EV_MINIMAL by EV_FEATURES. |
|
|
89 | - prefer EPOLL_CTL_ADD over EPOLL_CTL_MOD in some more cases, as it |
|
|
90 | seems the former is *much* faster than the latter. |
|
|
91 | - linux kernel version detection (for inotify bug workarounds) |
|
|
92 | did not work properly. |
|
|
93 | - reduce the number of spurious wake-ups with the ports backend. |
12 | - remove dependency on sys/queue.h on freebsd (patch by Vanilla Hsu). |
94 | - remove dependency on sys/queue.h on freebsd (patch by Vanilla Hsu). |
|
|
95 | - do async init within ev_async_start, not ev_async_set, which avoids |
|
|
96 | an API quirk where the set function must be called in the C++ API |
|
|
97 | even when there is nothing to set. |
13 | - add (undocumented) EV_ENABLE when adding events with kqueue, |
98 | - add (undocumented) EV_ENABLE when adding events with kqueue, |
14 | this might help with OS X, which seems to need it despite documenting |
99 | this might help with OS X, which seems to need it despite documenting |
15 | not to need it (helpfully pointed out by Tilghman Lesher). |
100 | not to need it (helpfully pointed out by Tilghman Lesher). |
16 | - do not use poll by default on freebsd, it's broken (what isn't |
101 | - do not use poll by default on freebsd, it's broken (what isn't |
17 | on freebsd...). |
102 | on freebsd...). |
|
|
103 | - allow to embed epoll on kernels >= 2.6.32. |
18 | - configure now prepends -O3, not appends it, so one can still |
104 | - configure now prepends -O3, not appends it, so one can still |
19 | override it. |
105 | override it. |
|
|
106 | - ev.pod: greatly expanded the portability section, added a porting |
|
|
107 | section, a description of watcher states and made lots of minor fixes. |
20 | - disable poll backend on AIX, the poll header spams the namespace |
108 | - disable poll backend on AIX, the poll header spams the namespace |
21 | and it's not worth working around dead platforms (reported |
109 | and it's not worth working around dead platforms (reported |
22 | and analyzed by Aivars Kalvans). |
110 | and analyzed by Aivars Kalvans). |
23 | - improve header file compatibility of the standalone eventfd code |
111 | - improve header file compatibility of the standalone eventfd code |
24 | in an obscure case. |
112 | in an obscure case. |
… | |
… | |
27 | no sscanf dependency). |
115 | no sscanf dependency). |
28 | - new EV_CHILD_ENABLE and EV_SIGNAL_ENABLE configurable settings. |
116 | - new EV_CHILD_ENABLE and EV_SIGNAL_ENABLE configurable settings. |
29 | - update libev.m4 HAVE_CLOCK_SYSCALL test for newer glibcs. |
117 | - update libev.m4 HAVE_CLOCK_SYSCALL test for newer glibcs. |
30 | - add section on accept() problems to the manpage. |
118 | - add section on accept() problems to the manpage. |
31 | - rename EV_TIMEOUT to EV_TIMER. |
119 | - rename EV_TIMEOUT to EV_TIMER. |
32 | - rename ev_loop_count/depth/verify. |
120 | - rename ev_loop_count/depth/verify/loop/unloop. |
|
|
121 | - remove ev_default_destroy and ev_default_fork. |
33 | - switch to two-digit minor version. |
122 | - switch to two-digit minor version. |
|
|
123 | - work around an apparent gentoo compiler bug. |
|
|
124 | - define _DARWIN_UNLIMITED_SELECT. just so. |
|
|
125 | - use enum instead of #define for most constants. |
|
|
126 | - improve compatibility to older C++ compilers. |
|
|
127 | - (experimental) ev_run/ev_default_loop/ev_break/ev_loop_new have now |
|
|
128 | default arguments when compiled as C++. |
|
|
129 | - enable automake dependency tracking. |
|
|
130 | - ev_loop_new no longer leaks memory when loop creation failed. |
|
|
131 | - new ev_cleanup watcher type. |
34 | |
132 | |
35 | 3.9 Thu Dec 31 07:59:59 CET 2009 |
133 | 3.9 Thu Dec 31 07:59:59 CET 2009 |
36 | - signalfd is no longer used by default and has to be requested |
134 | - signalfd is no longer used by default and has to be requested |
37 | explicitly - this means that easy to catch bugs become hard to |
135 | explicitly - this means that easy to catch bugs become hard to |
38 | catch race conditions, but the users have spoken. |
136 | catch race conditions, but the users have spoken. |
39 | - point out the unspecified signal mask in the documentation, and |
137 | - point out the unspecified signal mask in the documentation, and |
40 | that this is a race condition regardless of EV_SIGNALFD. |
138 | that this is a race condition regardless of EV_SIGNALFD. |
41 | - backport inotify code to C89. |
139 | - backport inotify code to C89. |
42 | - inotify file descriptors could leak into child processes. |
140 | - inotify file descriptors could leak into child processes. |
43 | - ev_stat watchers could keep an errornous extra ref on the loop, |
141 | - ev_stat watchers could keep an erroneous extra ref on the loop, |
44 | preventing exit when unregistering all watchers (testcases |
142 | preventing exit when unregistering all watchers (testcases |
45 | provided by ry@tinyclouds.org). |
143 | provided by ry@tinyclouds.org). |
46 | - implement EV_WIN32_HANDLE_TO_FD and EV_WIN32_CLOSE_FD configuration |
144 | - implement EV_WIN32_HANDLE_TO_FD and EV_WIN32_CLOSE_FD configuration |
47 | symbols to make it easier for apps to do their own fd management. |
145 | symbols to make it easier for apps to do their own fd management. |
48 | - support EV_IDLE_ENABLE being disabled in ev++.h |
146 | - support EV_IDLE_ENABLE being disabled in ev++.h |
… | |
… | |
54 | - changed minimum glibc requirement from glibc 2.9 to 2.7, for |
152 | - changed minimum glibc requirement from glibc 2.9 to 2.7, for |
55 | signalfd. |
153 | signalfd. |
56 | - add missing string.h include (Denis F. Latypoff). |
154 | - add missing string.h include (Denis F. Latypoff). |
57 | - only replace ev_stat.prev when we detect an actual difference, |
155 | - only replace ev_stat.prev when we detect an actual difference, |
58 | so prev is (almost) always different to attr. this might |
156 | so prev is (almost) always different to attr. this might |
59 | have caused the probems with 04_stat.t. |
157 | have caused the problems with 04_stat.t. |
60 | - add ev::timer->remaining () method to C++ API. |
158 | - add ev::timer->remaining () method to C++ API. |
61 | |
159 | |
62 | 3.8 Sun Aug 9 14:30:45 CEST 2009 |
160 | 3.8 Sun Aug 9 14:30:45 CEST 2009 |
63 | - incompatible change: do not necessarily reset signal handler |
161 | - incompatible change: do not necessarily reset signal handler |
64 | to SIG_DFL when a sighandler is stopped. |
162 | to SIG_DFL when a sighandler is stopped. |
65 | - ev_default_destroy did not properly free or zero some members, |
163 | - ev_default_destroy did not properly free or zero some members, |
66 | potentially causing crashes and memory corruption on repated |
164 | potentially causing crashes and memory corruption on repeated |
67 | ev_default_destroy/ev_default_loop calls. |
165 | ev_default_destroy/ev_default_loop calls. |
68 | - take advantage of signalfd on GNU/Linux systems. |
166 | - take advantage of signalfd on GNU/Linux systems. |
69 | - document that the signal mask might be in an unspecified |
167 | - document that the signal mask might be in an unspecified |
70 | state when using libev's signal handling. |
168 | state when using libev's signal handling. |
71 | - take advantage of some GNU/Linux calls to set cloexec/nonblock |
169 | - take advantage of some GNU/Linux calls to set cloexec/nonblock |
… | |
… | |
106 | - correctly zero the idx values for arrays, so destroying and |
204 | - correctly zero the idx values for arrays, so destroying and |
107 | reinitialising the default loop actually works (patch by |
205 | reinitialising the default loop actually works (patch by |
108 | Malek Hadj-Ali). |
206 | Malek Hadj-Ali). |
109 | - implement ev_suspend and ev_resume. |
207 | - implement ev_suspend and ev_resume. |
110 | - new EV_CUSTOM revents flag for use by applications. |
208 | - new EV_CUSTOM revents flag for use by applications. |
111 | - add documentation section about priorites. |
209 | - add documentation section about priorities. |
112 | - add a glossary to the dcoumentation. |
210 | - add a glossary to the dcoumentation. |
113 | - extend the ev_fork description slightly. |
211 | - extend the ev_fork description slightly. |
114 | - optimize a jump out of call_pending. |
212 | - optimize a jump out of call_pending. |
115 | |
213 | |
116 | 3.53 Sun Feb 15 02:38:20 CET 2009 |
214 | 3.53 Sun Feb 15 02:38:20 CET 2009 |
… | |
… | |
193 | do similar changes for event.c. |
291 | do similar changes for event.c. |
194 | |
292 | |
195 | 3.45 Tue Oct 21 21:59:26 CEST 2008 |
293 | 3.45 Tue Oct 21 21:59:26 CEST 2008 |
196 | - disable inotify usage on linux <2.6.25, as it is broken |
294 | - disable inotify usage on linux <2.6.25, as it is broken |
197 | (reported by Yoann Vandoorselaere). |
295 | (reported by Yoann Vandoorselaere). |
198 | - ev_stat errornously would try to add inotify watchers |
296 | - ev_stat erroneously would try to add inotify watchers |
199 | even when inotify wasn't available (this should only |
297 | even when inotify wasn't available (this should only |
200 | have a performance impact). |
298 | have a performance impact). |
201 | - ev_once now passes both timeout and io to the callback if both |
299 | - ev_once now passes both timeout and io to the callback if both |
202 | occur concurrently, instead of giving timeouts precedence. |
300 | occur concurrently, instead of giving timeouts precedence. |
203 | - disable EV_USE_INOTIFY when sys/inotify.h is too old. |
301 | - disable EV_USE_INOTIFY when sys/inotify.h is too old. |
… | |
… | |
271 | - enable inlining with gcc versions 2 and 3. |
369 | - enable inlining with gcc versions 2 and 3. |
272 | - work around broken poll implementations potentially |
370 | - work around broken poll implementations potentially |
273 | not clearing revents field in ev_poll (Brandon Black) |
371 | not clearing revents field in ev_poll (Brandon Black) |
274 | (no such systems are known at this time). |
372 | (no such systems are known at this time). |
275 | - work around a bug in realloc on openbsd and darwin, |
373 | - work around a bug in realloc on openbsd and darwin, |
276 | also makes the errornous valgrind complaints |
374 | also makes the erroneous valgrind complaints |
277 | go away (noted by various people). |
375 | go away (noted by various people). |
278 | - fix ev_async_pending, add c++ wrapper for ev_async |
376 | - fix ev_async_pending, add c++ wrapper for ev_async |
279 | (based on patch sent by Johannes Deisenhofer. |
377 | (based on patch sent by Johannes Deisenhofer). |
280 | - add sensible set method to ev::embed. |
378 | - add sensible set method to ev::embed. |
281 | - made integer constants type int in ev.h. |
379 | - made integer constants type int in ev.h. |
282 | |
380 | |
283 | 3.2 Wed Apr 2 17:11:19 CEST 2008 |
381 | 3.2 Wed Apr 2 17:11:19 CEST 2008 |
284 | - fix a 64 bit overflow issue in the select backend, |
382 | - fix a 64 bit overflow issue in the select backend, |