mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 13:58:58 -04:00
event_base_get_method; from Springande Ulv
svn:r635
This commit is contained in:
parent
f38aec8bb7
commit
8ab618916f
@ -37,6 +37,7 @@ Changes in current version:
|
|||||||
o remove pending timeouts on event_base_free()
|
o remove pending timeouts on event_base_free()
|
||||||
o also check EAGAIN for Solaris' event ports; from W.C.A. Wijngaards
|
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 devpoll and evport need reinit; tested by W.C.A Wijngaards
|
||||||
|
o event_base_get_method; from Springande Ulv
|
||||||
|
|
||||||
Changes in 1.4.0:
|
Changes in 1.4.0:
|
||||||
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.
|
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.
|
||||||
|
7
event.c
7
event.c
@ -387,6 +387,13 @@ event_base_dispatch(struct event_base *event_base)
|
|||||||
return (event_base_loop(event_base, 0));
|
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
|
static void
|
||||||
event_loopexit_cb(evutil_socket_t fd, short what, void *arg)
|
event_loopexit_cb(evutil_socket_t fd, short what, void *arg)
|
||||||
{
|
{
|
||||||
|
9
event.h
9
event.h
@ -312,6 +312,15 @@ int event_dispatch(void);
|
|||||||
int event_base_dispatch(struct event_base *);
|
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.
|
Deallocate all memory associated with an event_base, and free the base.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user