From 7920ea55b8d994268d2b07f27316b0f34d8f27e5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 25 Nov 2011 17:18:03 -0500 Subject: Refactor tor_event_base_once to do what we actually want This version avoids the timeout system entirely, gives a nicer interface, and lets us manage allocation explicitly. --- src/common/compat_libevent.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/common/compat_libevent.h') diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h index 897eddbbe..3f916d16b 100644 --- a/src/common/compat_libevent.h +++ b/src/common/compat_libevent.h @@ -46,8 +46,7 @@ void tor_event_free(struct event *ev); typedef struct periodic_timer_t periodic_timer_t; -int tor_event_base_once(void (*cb)(evutil_socket_t, short, void *), - void *arg, struct timeval *timer); +int tor_run_in_libevent_loop(void (*cb)(void *arg), void *arg); periodic_timer_t *periodic_timer_new(struct event_base *base, const struct timeval *tv, -- cgit v1.2.3