ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/Changes
(Generate patch)

Comparing libev/Changes (file contents):
Revision 1.167 by root, Tue Mar 16 00:43:22 2010 UTC vs.
Revision 1.321 by root, Fri Dec 21 06:57:09 2018 UTC

1Revision history for libev, a high-performance and full-featured event loop. 1Revision history for libev, a high-performance and full-featured event loop.
2 2
3TODO: ABI??? API????? Changes??? 34.25 Fri Dec 21 07:49:20 CET 2018
4 - INCOMPATIBLE CHANGE: EV_THROW was renamed to EV_NOEXCEPT
5 (EV_THROW sitll provided) and now uses noexcept on C++11 or newer.
6 - move the darwin select workaround highe rin ev.c, as newer versions of
7 darwin managed to break their broken select even more.
8 - ANDROID => __ANDROID__ (reported by enh@google.com).
9 - disable epoll_create1 on android because it has broken header files
10 and google is unwilling to fix them (reported by enh@google.com).
11 - avoid a minor compilation warning on win32.
12 - c++: remove deprecated dynamic throw() specifications.
13 - c++: improve the (unsupported) bad_loop exception class.
14 - backport perl ev_periodic example to C, untested.
15 - update libecb, biggets change is to include a memory fence
16 in ECB_MEMORY_FENCE_RELEASE on x86/amd64.
17
184.24 Wed Dec 28 05:19:55 CET 2016
19 - bump version to 4.24, as the release tarball inexplicably
20 didn't have the right version in ev.h, even though the cvs-tagged
21 version did have the right one (reported by Ales Teska).
22
234.23 Wed Nov 16 18:23:41 CET 2016
24 - move some declarations at the beginning to help certain retarded
25 microsoft compilers, even though their documentation claims
26 otherwise (reported by Ruslan Osmanov).
27
284.22 Sun Dec 20 22:11:50 CET 2015
29 - when epoll detects unremovable fds in the fd set, rebuild
30 only the epoll descriptor, not the signal pipe, to avoid
31 SIGPIPE in ev_async_send. This doesn't solve it on fork,
32 so document what needs to be done in ev_loop_fork
33 (analyzed by Benjamin Mahler).
34 - remove superfluous sys/timeb.h include on win32
35 (analyzed by Jason Madden).
36 - updated libecb.
37
384.20 Sat Jun 20 13:01:43 CEST 2015
39 - prefer noexcept over throw () with C++ 11.
40 - update ecb.h due to incompatibilities with c11.
41 - fix a potential aliasing issue when reading and writing
42 watcher callbacks.
43
444.19 Thu Sep 25 08:18:25 CEST 2014
45 - ev.h wasn't valid C++ anymore, which tripped compilers other than
46 clang, msvc or gcc (analyzed by Raphael 'kena' Poss). Unfortunately,
47 C++ doesn't support typedefs for function pointers fully, so the affected
48 declarations have to spell out the types each time.
49 - when not using autoconf, tighten the check for clock_gettime and related
50 functionality.
51
524.18 Fri Sep 5 17:55:26 CEST 2014
53 - events on files were not always generated properly with the
54 epoll backend (testcase by Assaf Inbal).
55 - mark event pipe fd as cloexec after a fork (analyzed by Sami Farin).
56 - (ecb) support m68k, m88k and sh (patch by Miod Vallat).
57 - use a reasonable fallback for EV_NSIG instead of erroring out
58 when we can't detect the signal set size.
59 - in the absence of autoconf, do not use the clock syscall
60 on glibc >= 2.17 (avoids the syscall AND -lrt on systems
61 doing clock_gettime in userspace).
62 - ensure extern "C" function pointers are used for externally-visible
63 loop callbacks (not watcher callbacks yet).
64 - (ecb) work around memory barriers and volatile apparently both being
65 broken in visual studio 2008 and later (analysed and patch by Nicolas Noble).
66
674.15 Fri Mar 1 12:04:50 CET 2013
68 - destroying a non-default loop would stop the global waitpid
69 watcher (Denis Bilenko).
70 - queueing pending watchers of higher priority from a watcher now invokes
71 them in a timely fashion (reported by Denis Bilenko).
72 - add throw() to all libev functions that cannot throw exceptions, for
73 further code size decrease when compiling for C++.
74 - add throw () to callbacks that must not throw exceptions (allocator,
75 syserr, loop acquire/release, periodic reschedule cbs).
76 - fix event_base_loop return code, add event_get_callback, event_base_new,
77 event_base_get_method calls to improve libevent 1.x emulation and add
78 some libevent 2.x functionality (based on a patch by Jeff Davey).
79 - add more memory fences to fix a bug reported by Jeff Davey. Better
80 be overfenced than underprotected.
81 - ev_run now returns a boolean status (true meaning watchers are
82 still active).
83 - ev_once: undef EV_ERROR in ev_kqueue.c, to avoid clashing with
84 libev's EV_ERROR (reported by 191919).
85 - (ecb) add memory fence support for xlC (Darin McBride).
86 - (ecb) add memory fence support for gcc-mips (Anton Kirilov).
87 - (ecb) add memory fence support for gcc-alpha (Christian Weisgerber).
88 - work around some kernels losing file descriptors by leaking
89 the kqueue descriptor in the child.
90 - work around linux inotify not reporting IN_ATTRIB changes for directories
91 in many cases.
92 - include sys/syscall.h instead of plain syscall.h.
93 - check for io watcher loops in ev_verify, check for the most
94 common reported usage bug in ev_io_start.
95 - choose socket vs. WSASocket at compiletime using EV_USE_WSASOCKET.
96 - always use WSASend/WSARecv directly on windows, hoping that this
97 works in all cases (unlike read/write/send/recv...).
98 - try to detect signals around a fork faster (test program by
99 Denis Bilenko).
100 - work around recent glibc versions that leak memory in realloc.
101 - rename ev::embed::set to ev::embed::set_embed to avoid clashing
102 the watcher base set (loop) method.
103 - rewrite the async/signal pipe logic to always keep a valid fd, which
104 simplifies (and hopefully correctifies :) the race checking
105 on fork, at the cost of one extra fd.
106 - add fat, msdos, jffs2, ramfs, ntfs and btrfs to the list of
107 inotify-supporting filesystems.
108 - move orig_CFLAGS assignment to after AC_INIT, as newer autoconf
109 versions ignore it before
110 (https://bugzilla.redhat.com/show_bug.cgi?id=908096).
111 - add some untested android support.
112 - enum expressions must be of type int (reported by Juan Pablo L).
113
1144.11 Sat Feb 4 19:52:39 CET 2012
115 - INCOMPATIBLE CHANGE: ev_timer_again now clears the pending status, as
116 was documented already, but not implemented in the repeating case.
117 - new compiletime symbols: EV_NO_SMP and EV_NO_THREADS.
118 - fix a race where the workaround against the epoll fork bugs
119 caused signals to not be handled anymore.
120 - correct backend_fudge for most backends, and implement a windows
121 specific workaround to avoid looping because we call both
122 select and Sleep, both with different time resolutions.
123 - document range and guarantees of ev_sleep.
124 - document reasonable ranges for periodics interval and offset.
125 - rename backend_fudge to backend_mintime to avoid future confusion :)
126 - change the default periodic reschedule function to hopefully be more
127 exact and correct even in corner cases or in the far future.
128 - do not rely on -lm anymore: use it when available but use our
129 own floor () if it is missing. This should make it easier to embed,
130 as no external libraries are required.
131 - strategically import macros from libecb and mark rarely-used functions
132 as cache-cold (saving almost 2k code size on typical amd64 setups).
133 - add Symbols.ev and Symbols.event files, that were missing.
134 - fix backend_mintime value for epoll (was 1/1024, is 1/1000 now).
135 - fix #3 "be smart about timeouts" to not "deadlock" when
136 timeout == now, also improve the section overall.
137 - avoid "AVOIDING FINISHING BEFORE RETURNING" idiom.
138 - support new EV_API_STATIC mode to make all libev symbols
139 static.
140 - supply default CFLAGS of -g -O3 with gcc when original CFLAGS
141 were empty.
142
1434.04 Wed Feb 16 09:01:51 CET 2011
144 - fix two problems in the native win32 backend, where reuse of fd's
145 with different underlying handles caused handles not to be removed
146 or added to the select set (analyzed and tested by Bert Belder).
147 - do no rely on ceil() in ev_e?poll.c.
148 - backport libev to HP-UX versions before 11 v3.
149 - configure did not detect nanosleep and clock_gettime properly when
150 they are available in the libc (as opposed to -lrt).
151
1524.03 Tue Jan 11 14:37:25 CET 2011
153 - officially support polling files with all backends.
154 - support files, /dev/zero etc. the same way as select in the epoll
155 backend, by generating events on our own.
156 - ports backend: work around solaris bug 6874410 and many related ones
157 (EINTR, maybe more), with no performance loss (note that the solaris
158 bug report is actually wrong, reality is far more bizarre and broken
159 than that).
160 - define EV_READ/EV_WRITE as macros in event.h, as some programs use
161 #ifdef to test for them.
162 - new (experimental) function: ev_feed_signal.
163 - new (to become default) EVFLAG_NOSIGMASK flag.
164 - new EVBACKEND_MASK symbol.
165 - updated COMMON IDIOMS SECTION.
166
1674.01 Fri Nov 5 21:51:29 CET 2010
168 - automake fucked it up, apparently, --add-missing -f is not quite enough
169 to make it update its files, so 4.00 didn't install ev++.h and
170 event.h on make install. grrr.
171 - ev_loop(count|depth) didn't return anything (Robin Haberkorn).
172 - change EV_UNDEF to 0xffffffff to silence some overzealous compilers.
173 - use "(libev) " prefix for all libev error messages now.
174
1754.00 Mon Oct 25 12:32:12 CEST 2010
176 - "PORTING FROM LIBEV 3.X TO 4.X" (in ev.pod) is recommended reading.
4 - ev_embed_stop did not correctly stop the watcher (very good 177 - ev_embed_stop did not correctly stop the watcher (very good
5 testcase by Vladimir Timofeev). 178 testcase by Vladimir Timofeev).
179 - ev_run will now always update the current loop time - it erroneously
180 didn't when idle watchers were active, causing timers not to fire.
181 - fix a bug where a timeout of zero caused the timer not to fire
182 in the libevent emulation (testcase by Péter Szabó).
6 - applied win32 fixes by Michael Lenaghan (also James Mansion). 183 - applied win32 fixes by Michael Lenaghan (also James Mansion).
7 - replace EV_MINIMAL by EV_FEATURES. 184 - replace EV_MINIMAL by EV_FEATURES.
185 - prefer EPOLL_CTL_ADD over EPOLL_CTL_MOD in some more cases, as it
186 seems the former is *much* faster than the latter.
187 - linux kernel version detection (for inotify bug workarounds)
188 did not work properly.
189 - reduce the number of spurious wake-ups with the ports backend.
8 - remove dependency on sys/queue.h on freebsd (patch by Vanilla Hsu). 190 - remove dependency on sys/queue.h on freebsd (patch by Vanilla Hsu).
191 - do async init within ev_async_start, not ev_async_set, which avoids
192 an API quirk where the set function must be called in the C++ API
193 even when there is nothing to set.
194 - add (undocumented) EV_ENABLE when adding events with kqueue,
195 this might help with OS X, which seems to need it despite documenting
196 not to need it (helpfully pointed out by Tilghman Lesher).
197 - do not use poll by default on freebsd, it's broken (what isn't
198 on freebsd...).
199 - allow to embed epoll on kernels >= 2.6.32.
9 - configure now prepends -O3, not appends it, so one can still 200 - configure now prepends -O3, not appends it, so one can still
10 override it. 201 override it.
202 - ev.pod: greatly expanded the portability section, added a porting
203 section, a description of watcher states and made lots of minor fixes.
11 - disable poll backend on AIX, the poll header spams the namespace 204 - disable poll backend on AIX, the poll header spams the namespace
12 and it's not worth working around dead platforms (reported 205 and it's not worth working around dead platforms (reported
13 and analyzed by Aivars Kalvans). 206 and analyzed by Aivars Kalvans).
14 - improve header file compatibility of the standalone eventfd code 207 - improve header file compatibility of the standalone eventfd code
15 in an obscure case. 208 in an obscure case.
16 - implement EV_AVOID_STDIO option. 209 - implement EV_AVOID_STDIO option.
17 - do not use sscanf to parse linux version number (smaller, faster, 210 - do not use sscanf to parse linux version number (smaller, faster,
18 no sscanf dependency). 211 no sscanf dependency).
19 - new EV_CHILD_ENABLE and EV_SIGNAL_ENABLE configurable settings. 212 - new EV_CHILD_ENABLE and EV_SIGNAL_ENABLE configurable settings.
20 - update libev.m4 HAVE_CLOCK_SYSCALL test for newwer glibcs. 213 - update libev.m4 HAVE_CLOCK_SYSCALL test for newer glibcs.
21 - add section on accept() problems to the manpage. 214 - add section on accept() problems to the manpage.
215 - rename EV_TIMEOUT to EV_TIMER.
216 - rename ev_loop_count/depth/verify/loop/unloop.
217 - remove ev_default_destroy and ev_default_fork.
218 - switch to two-digit minor version.
219 - work around an apparent gentoo compiler bug.
220 - define _DARWIN_UNLIMITED_SELECT. just so.
221 - use enum instead of #define for most constants.
222 - improve compatibility to older C++ compilers.
223 - (experimental) ev_run/ev_default_loop/ev_break/ev_loop_new have now
224 default arguments when compiled as C++.
225 - enable automake dependency tracking.
226 - ev_loop_new no longer leaks memory when loop creation failed.
227 - new ev_cleanup watcher type.
22 228
233.9 Thu Dec 31 07:59:59 CET 2009 2293.9 Thu Dec 31 07:59:59 CET 2009
24 - signalfd is no longer used by default and has to be requested 230 - signalfd is no longer used by default and has to be requested
25 explicitly - this means that easy to catch bugs become hard to 231 explicitly - this means that easy to catch bugs become hard to
26 catch race conditions, but the users have spoken. 232 catch race conditions, but the users have spoken.
27 - point out the unspecified signal mask in the documentation, and 233 - point out the unspecified signal mask in the documentation, and
28 that this is a race condition regardless of EV_SIGNALFD. 234 that this is a race condition regardless of EV_SIGNALFD.
29 - backport inotify code to C89. 235 - backport inotify code to C89.
30 - inotify file descriptors could leak into child processes. 236 - inotify file descriptors could leak into child processes.
31 - ev_stat watchers could keep an errornous extra ref on the loop, 237 - ev_stat watchers could keep an erroneous extra ref on the loop,
32 preventing exit when unregistering all watchers (testcases 238 preventing exit when unregistering all watchers (testcases
33 provided by ry@tinyclouds.org). 239 provided by ry@tinyclouds.org).
34 - implement EV_WIN32_HANDLE_TO_FD and EV_WIN32_CLOSE_FD configuration 240 - implement EV_WIN32_HANDLE_TO_FD and EV_WIN32_CLOSE_FD configuration
35 symbols to make it easier for apps to do their own fd management. 241 symbols to make it easier for apps to do their own fd management.
36 - support EV_IDLE_ENABLE being disabled in ev++.h 242 - support EV_IDLE_ENABLE being disabled in ev++.h
42 - changed minimum glibc requirement from glibc 2.9 to 2.7, for 248 - changed minimum glibc requirement from glibc 2.9 to 2.7, for
43 signalfd. 249 signalfd.
44 - add missing string.h include (Denis F. Latypoff). 250 - add missing string.h include (Denis F. Latypoff).
45 - only replace ev_stat.prev when we detect an actual difference, 251 - only replace ev_stat.prev when we detect an actual difference,
46 so prev is (almost) always different to attr. this might 252 so prev is (almost) always different to attr. this might
47 have caused the probems with 04_stat.t. 253 have caused the problems with 04_stat.t.
48 - add ev::timer->remaining () method to C++ API. 254 - add ev::timer->remaining () method to C++ API.
49 255
503.8 Sun Aug 9 14:30:45 CEST 2009 2563.8 Sun Aug 9 14:30:45 CEST 2009
51 - incompatible change: do not necessarily reset signal handler 257 - incompatible change: do not necessarily reset signal handler
52 to SIG_DFL when a sighandler is stopped. 258 to SIG_DFL when a sighandler is stopped.
53 - ev_default_destroy did not properly free or zero some members, 259 - ev_default_destroy did not properly free or zero some members,
54 potentially causing crashes and memory corruption on repated 260 potentially causing crashes and memory corruption on repeated
55 ev_default_destroy/ev_default_loop calls. 261 ev_default_destroy/ev_default_loop calls.
56 - take advantage of signalfd on GNU/Linux systems. 262 - take advantage of signalfd on GNU/Linux systems.
57 - document that the signal mask might be in an unspecified 263 - document that the signal mask might be in an unspecified
58 state when using libev's signal handling. 264 state when using libev's signal handling.
59 - take advantage of some GNU/Linux calls to set cloexec/nonblock 265 - take advantage of some GNU/Linux calls to set cloexec/nonblock
94 - correctly zero the idx values for arrays, so destroying and 300 - correctly zero the idx values for arrays, so destroying and
95 reinitialising the default loop actually works (patch by 301 reinitialising the default loop actually works (patch by
96 Malek Hadj-Ali). 302 Malek Hadj-Ali).
97 - implement ev_suspend and ev_resume. 303 - implement ev_suspend and ev_resume.
98 - new EV_CUSTOM revents flag for use by applications. 304 - new EV_CUSTOM revents flag for use by applications.
99 - add documentation section about priorites. 305 - add documentation section about priorities.
100 - add a glossary to the dcoumentation. 306 - add a glossary to the documentation.
101 - extend the ev_fork description slightly. 307 - extend the ev_fork description slightly.
102 - optimize a jump out of call_pending. 308 - optimize a jump out of call_pending.
103 309
1043.53 Sun Feb 15 02:38:20 CET 2009 3103.53 Sun Feb 15 02:38:20 CET 2009
105 - fix a bug in event pipe creation on win32 that would cause a 311 - fix a bug in event pipe creation on win32 that would cause a
181 do similar changes for event.c. 387 do similar changes for event.c.
182 388
1833.45 Tue Oct 21 21:59:26 CEST 2008 3893.45 Tue Oct 21 21:59:26 CEST 2008
184 - disable inotify usage on linux <2.6.25, as it is broken 390 - disable inotify usage on linux <2.6.25, as it is broken
185 (reported by Yoann Vandoorselaere). 391 (reported by Yoann Vandoorselaere).
186 - ev_stat errornously would try to add inotify watchers 392 - ev_stat erroneously would try to add inotify watchers
187 even when inotify wasn't available (this should only 393 even when inotify wasn't available (this should only
188 have a performance impact). 394 have a performance impact).
189 - ev_once now passes both timeout and io to the callback if both 395 - ev_once now passes both timeout and io to the callback if both
190 occur concurrently, instead of giving timeouts precedence. 396 occur concurrently, instead of giving timeouts precedence.
191 - disable EV_USE_INOTIFY when sys/inotify.h is too old. 397 - disable EV_USE_INOTIFY when sys/inotify.h is too old.
259 - enable inlining with gcc versions 2 and 3. 465 - enable inlining with gcc versions 2 and 3.
260 - work around broken poll implementations potentially 466 - work around broken poll implementations potentially
261 not clearing revents field in ev_poll (Brandon Black) 467 not clearing revents field in ev_poll (Brandon Black)
262 (no such systems are known at this time). 468 (no such systems are known at this time).
263 - work around a bug in realloc on openbsd and darwin, 469 - work around a bug in realloc on openbsd and darwin,
264 also makes the errornous valgrind complaints 470 also makes the erroneous valgrind complaints
265 go away (noted by various people). 471 go away (noted by various people).
266 - fix ev_async_pending, add c++ wrapper for ev_async 472 - fix ev_async_pending, add c++ wrapper for ev_async
267 (based on patch sent by Johannes Deisenhofer. 473 (based on patch sent by Johannes Deisenhofer).
268 - add sensible set method to ev::embed. 474 - add sensible set method to ev::embed.
269 - made integer constants type int in ev.h. 475 - made integer constants type int in ev.h.
270 476
2713.2 Wed Apr 2 17:11:19 CEST 2008 4773.2 Wed Apr 2 17:11:19 CEST 2008
272 - fix a 64 bit overflow issue in the select backend, 478 - fix a 64 bit overflow issue in the select backend,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines