libev/Changes

279 lines
14 KiB
Plaintext
Raw Normal View History

2008-03-13 13:06:14 +00:00
Revision history for libev, a high-performance and full-featured event loop.
2007-10-31 20:46:44 +00:00
2009-07-17 14:49:33 +00:00
TODO: ev_walk
TODO: signal handling per loop
2009-07-19 06:35:25 +00:00
TODO: NSIG etc.
TODO: NOSIGFD/NOEVTFD/NOINOTIFY?
2009-07-19 01:36:34 +00:00
- incompatible change: do not necessarily reset signal handler
to SIG_DFL when a sighandler is stopped.
2009-07-19 04:06:13 +00:00
- ev_default_destroy did not properly free or zero some members,
2009-07-19 03:49:04 +00:00
potentially causing crashes and memory corruption on repated
ev_default_destroy/ev_default_loop calls.
2009-07-19 01:36:34 +00:00
- take advantage of signalfd on GNU/Linux systems.
- document that the signal mask might be in an unspecified
state when using libev's signal handling.
2009-07-19 04:11:27 +00:00
- take advantage of some GNU/Linux calls to set cloexec/nonblock
on fd creation, to avoid race conditions.
2009-07-17 14:49:33 +00:00
2009-07-17 14:43:38 +00:00
3.7 Fri Jul 17 16:36:32 CEST 2009
2009-07-15 16:58:53 +00:00
- ev_unloop and ev_loop wrongly used a global variable to exit loops,
instead of using a per-loop variable (bug caught by accident...).
- the ev_set_io_collect_interval interpretation has changed.
- add new functionality: ev_set_userdata, ev_userdata,
2009-07-14 19:02:43 +00:00
ev_set_invoke_pending_cb, ev_set_loop_release_cb,
2009-07-17 14:49:33 +00:00
ev_invoke_pending, ev_pending_count, together with a long example
about thread locking.
2009-07-15 16:58:53 +00:00
- add ev_timer_remaining (as requested by Denis F. Latypoff).
- add ev_loop_depth.
2009-07-10 19:10:19 +00:00
- calling ev_unloop in fork/prepare watchers will no longer poll
for new events.
2009-06-29 04:41:34 +00:00
- Denis F. Latypoff corrected many typos in example code snippets.
- honor autoconf detection of EV_USE_CLOCK_SYSCALL, also double-
check that the syscall number is available before trying to
use it (reported by ry@tinyclouds).
2009-06-29 11:53:48 +00:00
- use GetSystemTimeAsFileTime instead of _timeb on windows, for
2009-06-29 07:22:56 +00:00
slightly higher accuracy.
2009-07-09 09:11:20 +00:00
- properly declare ev_loop_verify and ev_now_update even when
!EV_MULTIPLICITY.
2009-07-08 04:29:31 +00:00
- do not compile in any priority code when EV_MAXPRI == EV_MINPRI.
2009-07-10 00:36:21 +00:00
- support EV_MINIMAL==2 for a reduced API.
2009-07-14 00:09:59 +00:00
- actually 0-initialise struct sigaction when installing signals.
2009-07-15 16:08:24 +00:00
- add section on hibernate and stopped processes to ev_timer docs.
2009-06-29 04:41:34 +00:00
2009-04-28 00:50:19 +00:00
3.6 Tue Apr 28 02:49:30 CEST 2009
2009-04-15 18:47:07 +00:00
- multiple timers becoming ready within an event loop iteration
will be invoked in the "correct" order now.
2009-04-15 09:51:19 +00:00
- do not leave the event loop early just because we have no active
watchers, fixing a problem when embedding a kqueue loop
that has active kernel events but no registered watchers
(reported by blacksand blacksand).
2009-03-14 04:45:39 +00:00
- correctly zero the idx values for arrays, so destroying and
reinitialising the default loop actually works (patch by
Malek Hadj-Ali).
2009-04-15 19:35:53 +00:00
- implement ev_suspend and ev_resume.
2009-04-15 17:49:26 +00:00
- new EV_CUSTOM revents flag for use by applications.
2009-04-16 07:50:39 +00:00
- add documentation section about priorites.
- add a glossary to the dcoumentation.
2009-04-20 19:45:57 +00:00
- extend the ev_fork description slightly.
2009-04-25 14:12:48 +00:00
- optimize a jump out of call_pending.
2009-03-14 04:45:39 +00:00
2009-02-15 01:44:40 +00:00
3.53 Sun Feb 15 02:38:20 CET 2009
- fix a bug in event pipe creation on win32 that would cause a
failed assertion on event loop creation (patch by Malek Hadj-Ali).
2009-02-06 20:17:43 +00:00
- probe for CLOCK_REALTIME support at runtime as well and fall
back to gettimeofday if there is an error, to support older
operating systems with newer header files/libraries.
- prefer gettimeofday over clock_gettime with USE_CLOCK_SYSCALL
(default most everywhere), otherwise not.
2009-01-07 20:45:52 +00:00
3.52 Wed Jan 7 21:43:02 CET 2009
2009-01-06 19:46:56 +00:00
- fix compilation of select backend in fd_set mode when NFDBITS is
missing (to get it to compile on QNX, reported by Rodrigo Campos).
- better select-nfds handling when select backend is in fd_set mode.
- diagnose fd_set overruns when select backend is in fd_set mode.
- due to a thinko, instead of disabling everything but
select on the borked OS X platform, everything but select was
allowed (reported by Emanuele Giaquinta).
2009-01-02 22:39:31 +00:00
- actually verify that local and remote port are matching in
libev's socketpair emulation, which makes denial-of-service
attacks harder (but not impossible - it's windows). Make sure
2009-01-02 23:23:32 +00:00
it even works under vista, which thinks that getpeer/sockname
should return fantasy port numbers.
2009-02-06 20:17:43 +00:00
- include "libev" in all assertion messages for potentially
2009-01-06 19:46:56 +00:00
clearer diagnostics.
2009-01-06 19:57:32 +00:00
- event_get_version (libevent compatibility) returned
a useless string instead of the expected version string
(patch by W.C.A. Wijngaards).
2009-01-02 22:39:31 +00:00
2008-12-24 22:05:18 +00:00
3.51 Wed Dec 24 23:00:11 CET 2008
2008-12-12 20:35:21 +00:00
- fix a bug where an inotify watcher was added twice, causing
2008-12-14 13:03:54 +00:00
freezes on hash collisions (reported and analysed by Graham Leggett).
2008-11-20 00:35:10 +00:00
- new config symbol, EV_USE_CLOCK_SYSCALL, to make libev use
a direct syscall - slower, but no dependency on librt et al.
2008-11-21 02:10:34 +00:00
- assume negative return values != -1 signals success of port_getn
(http://cvs.epicsol.org/cgi/viewcvs.cgi/epic5/source/newio.c?rev=1.52)
(no known failure reports, but it doesn't hurt).
2008-12-14 21:58:08 +00:00
- fork detection in ev_embed now stops and restarts the watcher
automatically.
2008-12-03 15:23:44 +00:00
- EXPERIMENTAL: default the method to operator () in ev++.h,
to make it nicer to use functors (requested by Benedek László).
- fixed const object callbacks in ev++.h.
2008-12-03 15:23:44 +00:00
- replaced loop_ref argument of watcher.set (loop) by a direct
ev_loop * in ev++.h, to avoid clashes with functor patch.
2008-12-12 20:35:21 +00:00
- do not try to watch the empty string via inotify.
2008-12-14 13:03:54 +00:00
- inotify watchers could be leaked under certain circumstances.
- OS X 10.5 is actually even more broken than earlier versions,
so fall back to select on that piece of garbage.
2008-12-14 21:58:08 +00:00
- fixed some weirdness in the ev_embed documentation.
2008-11-20 00:35:10 +00:00
2008-11-19 10:33:32 +00:00
3.49 Wed Nov 19 11:26:53 CET 2008
2008-11-03 14:27:06 +00:00
- ev_stat watchers will now use inotify as a mere hint on
kernels <2.6.25, or if the filesystem is not in the
"known to be good" list.
2008-11-17 03:37:08 +00:00
- better mingw32 compatibility (it's not as borked as native win32)
(analysed by Roger Pack).
2008-11-19 04:57:05 +00:00
- include stdio.h in the example program, as too many people are
confused by the weird C language otherwise. I guess the next thing
I get told is that the "..." ellipses in the examples don't compile
with their C compiler.
2008-11-03 14:27:06 +00:00
2008-10-30 08:09:30 +00:00
3.48 Thu Oct 30 09:02:37 CET 2008
2008-10-23 04:56:49 +00:00
- further optimise away the EPOLL_CTL_ADD/MOD combo in the epoll
backend by assuming the kernel event mask hasn't changed if
ADD fails with EEXIST.
- work around spurious event notification bugs in epoll by using
2008-10-29 06:32:48 +00:00
a 32-bit generation counter. recreate kernel state if we receive
2008-10-29 17:42:49 +00:00
spurious notifications or unwanted events. this is very costly,
but I didn't come up with this horrible design.
2008-10-23 04:56:49 +00:00
- use memset to initialise most arrays now and do away with the
init functions.
2008-10-23 07:18:21 +00:00
- expand time-out strategies into a "Be smart about timeouts" section.
- drop the "struct" from all ev_watcher declarations in the
2008-10-23 07:33:45 +00:00
documentation and did other clarifications (yeah, it was a mistake
to have a struct AND a function called ev_loop).
2008-10-24 08:15:33 +00:00
- fix a bug where ev_default would not initialise the default
loop again after it was destroyed with ev_default_destroy.
2008-10-29 17:50:57 +00:00
- rename syserr to ev_syserr to avoid name clashes when embedding,
do similar changes for event.c.
2008-10-23 04:56:49 +00:00
2008-10-21 20:04:14 +00:00
3.45 Tue Oct 21 21:59:26 CEST 2008
2008-10-13 23:20:12 +00:00
- disable inotify usage on linux <2.6.25, as it is broken
(reported by Yoann Vandoorselaere).
- ev_stat errornously would try to add inotify watchers
2008-10-15 14:13:26 +00:00
even when inotify wasn't available (this should only
2008-10-13 23:20:12 +00:00
have a performance impact).
2008-10-01 04:25:25 +00:00
- ev_once now passes both timeout and io to the callback if both
occur concurrently, instead of giving timeouts precedence.
2008-10-01 18:50:03 +00:00
- disable EV_USE_INOTIFY when sys/inotify.h is too old.
2008-10-01 04:25:25 +00:00
2008-09-29 03:31:14 +00:00
3.44 Mon Sep 29 05:18:39 CEST 2008
- embed watchers now automatically invoke ev_loop_fork on the
embedded loop when the parent loop forks.
2008-09-08 17:24:39 +00:00
- new function: ev_now_update (loop).
2008-09-07 18:15:12 +00:00
- verify_watcher was not marked static.
2008-09-13 18:25:50 +00:00
- improve the "associating..." manpage section.
2008-09-19 03:46:20 +00:00
- documentation tweaks here and there.
2008-09-07 18:15:12 +00:00
2008-07-06 03:36:51 +00:00
3.43 Sun Jul 6 05:34:41 CEST 2008
2008-06-19 06:58:34 +00:00
- include more include files on windows to get struct _stati64
2008-07-06 03:36:51 +00:00
(reported by Chris Hulbert, but doesn't quite fix his issue).
2008-06-19 06:53:49 +00:00
- add missing #include <io.h> in ev.c on windows (reported by
Matt Tolton).
2008-06-17 10:16:00 +00:00
3.42 Tue Jun 17 12:12:07 CEST 2008
2008-06-09 14:11:30 +00:00
- work around yet another windows bug: FD_SET actually adds fd's
multiple times to the fd_*SET*, despite official MSN docs claiming
2008-06-17 00:04:56 +00:00
otherwise. Reported and well-analysed by Matt Tolton.
- define NFDBITS to 0 when EV_SELECT_IS_WINSOCKET to make it compile
2008-06-04 07:42:58 +00:00
(reported any analysed by Chris Hulbert).
2008-06-04 20:26:55 +00:00
- fix a bug in ev_ebadf (this function is only used to catch
programming errors in the libev user). reported by Matt Tolton.
- fix a bug in fd_intern on win32 (could lead to compile errors
under some circumstances, but would work correctly if it compiles).
reported by Matt Tolton.
2008-06-09 14:11:30 +00:00
- (try to) work around missing lstat on windows.
2008-05-26 03:54:40 +00:00
- pass in the write fd set as except fd set under windows. windows
2008-05-26 04:14:32 +00:00
is so uncontrollably lame that it requires this. this means that
switching off oobinline is not supported (but tcp/ip doesn't
have oob, so that would be stupid anyways.
2008-05-31 03:13:26 +00:00
- use posix module symbol to auto-detect monotonic clock presence
and some other default values.
2008-05-26 03:54:40 +00:00
2008-05-23 16:43:45 +00:00
3.41 Fri May 23 18:42:54 CEST 2008
2008-05-26 04:14:32 +00:00
- work around an obscure bug in winsocket select: if you
2008-05-20 19:26:45 +00:00
provide only empty fd sets then select returns WSAEINVAL. how sucky.
2008-05-20 23:49:41 +00:00
- improve timer scheduling stability and reduce use of time_epsilon.
2008-05-07 14:45:17 +00:00
- use 1-based 2-heap for EV_MINIMAL, simplifies code, reduces
codesize and makes for better cache-efficiency.
- use 3-based 4-heap for !EV_MINIMAL. this makes better use
of cpu cache lines and gives better growth behaviour than
2-based heaps.
2008-05-09 15:52:13 +00:00
- cache timestamp within heap for !EV_MINIMAL, to avoid random
memory accesses.
- document/add EV_USE_4HEAP and EV_HEAP_CACHE_AT.
- fix a potential aliasing issue in ev_timer_again.
2008-05-06 23:34:16 +00:00
- add/document ev_periodic_at, retract direct access to ->at.
- improve ev_stat docs.
- add portability requirements section.
2008-05-11 11:47:27 +00:00
- fix manpage headers etc.
2008-05-20 19:26:45 +00:00
- normalise WSA error codes to lower range on windows.
2008-05-22 02:44:57 +00:00
- add consistency check code that can be called automatically
or on demand to check for internal structures (ev_loop_verify).
2008-05-02 08:07:37 +00:00
2008-04-16 18:47:06 +00:00
3.31 Wed Apr 16 20:45:04 CEST 2008
- added last minute fix for ev_poll.c by Brandon Black.
2008-04-16 18:47:06 +00:00
2008-04-16 17:08:29 +00:00
3.3 Wed Apr 16 19:04:10 CEST 2008
2008-04-09 22:07:50 +00:00
- event_base_loopexit should return 0 on success
(W.C.A. Wijngaards).
2008-04-06 09:53:16 +00:00
- added linux eventfd support.
- try to autodetect epoll and inotify support
by libc header version if not using autoconf.
2008-04-06 14:34:50 +00:00
- new symbols: EV_DEFAULT_UC and EV_DEFAULT_UC_.
- declare functions defined in ev.h as inline if
C99 or gcc are available.
- enable inlining with gcc versions 2 and 3.
2008-04-09 22:53:15 +00:00
- work around broken poll implementations potentially
not clearing revents field in ev_poll (Brandon Black)
(no such systems are known at this time).
2008-04-09 22:07:50 +00:00
- work around a bug in realloc on openbsd and darwin,
also makes the errornous valgrind complaints
go away (noted by various people).
2008-04-15 04:34:07 +00:00
- fix ev_async_pending, add c++ wrapper for ev_async
(based on patch sent by Johannes Deisenhofer.
- add sensible set method to ev::embed.
2008-04-16 01:37:14 +00:00
- made integer constants type int in ev.h.
2008-04-06 09:53:16 +00:00
2008-04-02 15:11:42 +00:00
3.2 Wed Apr 2 17:11:19 CEST 2008
2008-03-16 16:38:23 +00:00
- fix a 64 bit overflow issue in the select backend,
by using fd_mask instead of int for the mask.
2008-03-23 00:05:03 +00:00
- rename internal sighandler to avoid clash with very old perls.
2008-04-02 10:55:39 +00:00
- entering ev_loop will not clear the ONESHOT or NONBLOCKING
flags of any outer loops anymore.
2008-04-02 06:34:50 +00:00
- add ev_async_pending.
2008-03-16 16:38:23 +00:00
2008-03-13 13:06:14 +00:00
3.1 Thu Mar 13 13:45:22 CET 2008
- implement ev_async watchers.
2008-01-31 19:59:23 +00:00
- only initialise signal pipe on demand.
- make use of sig_atomic_t configurable.
2008-03-13 13:06:14 +00:00
- improved documentation.
2008-01-31 19:59:23 +00:00
2008-01-28 12:23:01 +00:00
3.0 Mon Jan 28 13:14:47 CET 2008
2008-01-25 15:45:08 +00:00
- API/ABI bump to version 3.0.
2008-01-10 06:00:55 +00:00
- ev++.h includes "ev.h" by default now, not <ev.h>.
- slightly improved documentation.
2008-01-18 11:31:02 +00:00
- speed up signal detection after a fork.
2008-01-25 15:45:08 +00:00
- only optionally return trace status changed in ev_child
watchers.
2008-01-28 12:13:54 +00:00
- experimental (and undocumented) loop wrappers for ev++.h.
2008-01-10 06:00:55 +00:00
2007-12-25 07:05:45 +00:00
2.01 Tue Dec 25 08:04:41 CET 2007
2007-12-25 07:16:52 +00:00
- separate Changes file.
2007-12-25 07:05:45 +00:00
- fix ev_path_set => ev_stat_set typo.
- remove event_compat.h from the libev tarball.
- change how include files are found.
- doc updates.
- update licenses, explicitly allow for GPL relicensing.
2.0 Sat Dec 22 17:47:03 CET 2007
- new ev_sleep, ev_set_(io|timeout)_collect_interval.
- removed epoll from embeddable fd set.
- fix embed watchers.
- renamed ev_embed.loop to other.
- added exported Symbol tables.
- undefine member wrapper macros at the end of ev.c.
- respect EV_H in ev++.h.
1.86 Tue Dec 18 02:36:57 CET 2007
- fix memleak on loop destroy (not relevant for perl).
1.85 Fri Dec 14 20:32:40 CET 2007
- fix some aliasing issues w.r.t. timers and periodics
(not relevant for perl).
(for historic versions refer to EV/Changes, found in the Perl interface)
2007-10-31 20:46:44 +00:00
0.1 Wed Oct 31 21:31:48 CET 2007
- original version; hacked together in <24h.