diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-03 10:44:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-05 12:35:11 -0400 |
commit | 871ff0006d052967534fb6ce31465b55021888f0 (patch) | |
tree | f3a489068b883fd059dee3e86f20d2a3c45682e0 /src/or/scheduler_vanilla.c | |
parent | f9e32a20843cca221f5d61688000a87fb2babaf8 (diff) | |
download | tor-871ff0006d052967534fb6ce31465b55021888f0.tar.gz tor-871ff0006d052967534fb6ce31465b55021888f0.zip |
Add an API for a scheduled/manually activated event in the mainloop
Using this API lets us remove event2/event.h usage from half a dozen
modules, to better isolate libevent. Implements part of ticket
23750.
Diffstat (limited to 'src/or/scheduler_vanilla.c')
-rw-r--r-- | src/or/scheduler_vanilla.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/scheduler_vanilla.c b/src/or/scheduler_vanilla.c index 7a83b9da18..b674d8256c 100644 --- a/src/or/scheduler_vanilla.c +++ b/src/or/scheduler_vanilla.c @@ -1,8 +1,6 @@ /* Copyright (c) 2017, The Tor Project, Inc. */ /* See LICENSE for licensing information */ -#include <event2/event.h> - #include "or.h" #include "config.h" #define TOR_CHANNEL_INTERNAL_ @@ -42,7 +40,7 @@ vanilla_scheduler_schedule(void) } /* Activate our event so it can process channels. */ - scheduler_ev_active(EV_TIMEOUT); + scheduler_ev_active(); } static void |