void *win32_init (struct event_base *);
int win32_insert (void *, struct event *);
int win32_del (void *, struct event *);
-int win32_recalc (struct event_base *base, void *, int);
int win32_dispatch (struct event_base *base, void *, struct timeval *);
void win32_dealloc (struct event_base *, void *);
win32_init,
win32_insert,
win32_del,
- win32_recalc,
win32_dispatch,
win32_dealloc,
0
return (NULL);
}
-int
-win32_recalc(struct event_base *base, void *arg, int max)
-{
-#if 0
- return (evsignal_recalc());
-#endif
- return (0);
-}
-
int
win32_insert(void *op, struct event *ev)
{
void *devpoll_init (struct event_base *);
int devpoll_add (void *, struct event *);
int devpoll_del (void *, struct event *);
-int devpoll_recalc (struct event_base *, void *, int);
int devpoll_dispatch (struct event_base *, void *, struct timeval *);
void devpoll_dealloc (struct event_base *, void *);
devpoll_init,
devpoll_add,
devpoll_del,
- devpoll_recalc,
devpoll_dispatch,
devpoll_dealloc
};
void *epoll_init (struct event_base *);
int epoll_add (void *, struct event *);
int epoll_del (void *, struct event *);
-int epoll_recalc (struct event_base *, void *, int);
int epoll_dispatch (struct event_base *, void *, struct timeval *);
void epoll_dealloc (struct event_base *, void *);
epoll_init,
epoll_add,
epoll_del,
- epoll_recalc,
epoll_dispatch,
epoll_dealloc,
1 /* need reinit */
void *(*init)(struct event_base *);
int (*add)(void *, struct event *);
int (*del)(void *, struct event *);
- int (*recalc)(struct event_base *, void *, int);
int (*dispatch)(struct event_base *, void *, struct timeval *);
void (*dealloc)(struct event_base *, void *);
/* set if we need to reinitialize the event base */
evsignal_base = base;
done = 0;
while (!done) {
- /* Calculate the initial events that we are waiting for */
- if (evsel->recalc(base, evbase, 0) == -1)
- return (-1);
-
/* Terminate the loop if we have been asked to */
if (base->event_gotterm) {
base->event_gotterm = 0;
* necessary when large fd's come in. reassociate() takes care of maintaining
* the proper file-descriptor/event-port associations.
*
- * As in the select(2) implementation, signals are handled by evsignal, and
- * evport_recalc does almost nothing.
+ * As in the select(2) implementation, signals are handled by evsignal.
*/
#ifdef HAVE_CONFIG_H
static void* evport_init (struct event_base *);
static int evport_add (void *, struct event *);
static int evport_del (void *, struct event *);
-static int evport_recalc (struct event_base *, void *, int);
static int evport_dispatch (struct event_base *, void *, struct timeval *);
static void evport_dealloc (struct event_base *, void *);
evport_init,
evport_add,
evport_del,
- evport_recalc,
evport_dispatch,
evport_dealloc
};
}
-/*
- * Copied from the version in select.c
- */
-
-static int
-evport_recalc(struct event_base *base, void *arg, int max)
-{
- struct evport_data *evpd = arg;
- check_evportop(evpd);
- return (0);
-}
-
-
/*
* Adds the given event (so that you will be notified when it happens via
* the callback function).
void *kq_init (struct event_base *);
int kq_add (void *, struct event *);
int kq_del (void *, struct event *);
-int kq_recalc (struct event_base *, void *, int);
int kq_dispatch (struct event_base *, void *, struct timeval *);
int kq_insert (struct kqop *, struct kevent *);
void kq_dealloc (struct event_base *, void *);
kq_init,
kq_add,
kq_del,
- kq_recalc,
kq_dispatch,
kq_dealloc,
1 /* need reinit */
return (kqueueop);
}
-int
-kq_recalc(struct event_base *base, void *arg, int max)
-{
- return (0);
-}
-
int
kq_insert(struct kqop *kqop, struct kevent *kev)
{
void *poll_init (struct event_base *);
int poll_add (void *, struct event *);
int poll_del (void *, struct event *);
-int poll_recalc (struct event_base *, void *, int);
int poll_dispatch (struct event_base *, void *, struct timeval *);
void poll_dealloc (struct event_base *, void *);
poll_init,
poll_add,
poll_del,
- poll_recalc,
poll_dispatch,
poll_dealloc,
0
return (pollop);
}
-/*
- * Called with the highest fd that we know about. If it is 0, completely
- * recalculate everything.
- */
-
-int
-poll_recalc(struct event_base *base, void *arg, int max)
-{
- return (0);
-}
-
#ifdef CHECK_INVARIANTS
static void
poll_check_ok(struct pollop *pop)
void *select_init (struct event_base *);
int select_add (void *, struct event *);
int select_del (void *, struct event *);
-int select_recalc (struct event_base *, void *, int);
int select_dispatch (struct event_base *, void *, struct timeval *);
void select_dealloc (struct event_base *, void *);
select_init,
select_add,
select_del,
- select_recalc,
select_dispatch,
select_dealloc,
0
#define check_selectop(sop) do { (void) sop; } while (0)
#endif
-/*
- * Called with the highest fd that we know about. If it is 0, completely
- * recalculate everything.
- */
-
-int
-select_recalc(struct event_base *base, void *arg, int max)
-{
- struct selectop *sop = arg;
-
- check_selectop(sop);
-
- return (0);
-}
-
int
select_dispatch(struct event_base *base, void *arg, struct timeval *tv)
{