The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also support callbacks due to signals or regular timeouts.
libevent is meant to replace the event loop found in event driven network servers. An application just needs to call event_dispatch() and then add or remove events dynamically without having to change the event loop.
Currently, libevent supports /dev/poll, kqueue(2), event ports, select(2), poll(2) and epoll(4). The internal event mechanism is completely independent of the exposed event API, and a simple update of libevent can provide new functionality without having to redesign the applications.
As a result, Libevent allows for portable application development and provides the most scalable event notification mechanism available on an operating system. Libevent can also be used for multi-threaded applications.
Libevent is a cross-platform library and should compile on Mac OS X, Linux, BSD, Solaris and Windows.
What's New in This Release: [ read full changelog ]
· More detailed message in case of libevent self-debugging failure. (9e6a4ef Leonid Evdokimov)
· epoll: close fd on alloc fail at initialization (1aee718 Jamie Iles)
· Fix compile warning from saying event2/*.h inside a comment (447b0ba)
· Warn when unable to construct base because of failing make_base_notifiable (4e797f3)
· Don't try to make notifiable event_base when no threading fns are configured (e787413)