from trunk: event_base_get_method; from Springande Ulv

svn:r636
This commit is contained in:
Niels Provos 2008-02-16 06:10:52 +00:00
parent f74af0310d
commit 72ae0a2e59
3 changed files with 17 additions and 0 deletions

View File

@ -2,6 +2,7 @@ Changes in 1.4.2:
o remove pending timeouts on event_base_free()
o also check EAGAIN for Solaris' event ports; from W.C.A. Wijngaards
o devpoll and evport need reinit; tested by W.C.A Wijngaards
o event_base_get_method; from Springande Ulv
Changes in 1.4.1-beta:
o free minheap on event_base_free(); from Christopher Layne

View File

@ -386,6 +386,13 @@ event_base_dispatch(struct event_base *event_base)
return (event_base_loop(event_base, 0));
}
const char *
event_base_get_method(struct event_base *base)
{
assert(base);
return (base->evsel->name);
}
static void
event_loopexit_cb(int fd, short what, void *arg)
{

View File

@ -312,6 +312,15 @@ int event_dispatch(void);
int event_base_dispatch(struct event_base *);
/**
Get the kernel event notification mechanism used by libevent.
@param eb the event_base structure returned by event_base_new()
@return a string identifying the kernel event mechanism (kqueue, epoll, etc.)
*/
const char *event_base_get_method(struct event_base *);
/**
Deallocate all memory associated with an event_base, and free the base.