summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorroot <root>2010-10-21 12:32:47 +0000
committerroot <root>2010-10-21 12:32:47 +0000
commit6f0d3cb475e52576be15d46194e09d01c54c7de4 (patch)
tree11882d1e81802b83f9f15af48a227ccc5dcd91dd /event.c
parent0aa781a3bca6d71933d42a757e501b376fa73c29 (diff)
*** empty log message ***
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/event.c b/event.c
index 47df2eb..b0eb475 100644
--- a/event.c
+++ b/event.c
@@ -140,7 +140,7 @@ int event_loopexit (struct timeval *tv)
static void
ev_x_cb (struct event *ev, int revents)
{
- revents &= EV_READ | EV_WRITE | EV_TIMEOUT | EV_SIGNAL;
+ revents &= EV_READ | EV_WRITE | EV_TIMER | EV_SIGNAL;
ev->ev_res = revents;
ev->ev_callback (ev->ev_fd, (short)revents, ev->ev_arg);
@@ -327,7 +327,7 @@ int event_base_loop (struct event_base *base, int flags)
{
dLOOPbase;
- ev_loop (EV_A_ flags);
+ ev_run (EV_A_ flags);
return 0;
}
@@ -342,7 +342,7 @@ ev_x_loopexit_cb (int revents, void *base)
{
dLOOPbase;
- ev_unloop (EV_A_ EVUNLOOP_ONE);
+ ev_break (EV_A_ EVBREAK_ONE);
}
int event_base_loopexit (struct event_base *base, struct timeval *tv)