summaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-09 12:40:45 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-10 09:01:56 -0400
commite722bba263e6c4648fff4259a14677993697337c (patch)
treef87f3600309992e37b0c0112599766e0c55b9d8e /src/or/main.h
parent4218511ecd8a1facbd38d744b1bd518c05517988 (diff)
downloadtor-e722bba263e6c4648fff4259a14677993697337c.tar.gz
tor-e722bba263e6c4648fff4259a14677993697337c.zip
Add a new function to enable/disable the per-second timer as needed
We're about to use this to turn off the per-second timer when the network is disabled and there aren't any per-second controller events enabled.
Diffstat (limited to 'src/or/main.h')
-rw-r--r--src/or/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/main.h b/src/or/main.h
index a312b51e05..3cfa9c82be 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -92,6 +92,7 @@ uint64_t get_main_loop_error_count(void);
uint64_t get_main_loop_idle_count(void);
void periodic_events_on_new_options(const or_options_t *options);
+void reschedule_per_second_timer(void);
extern time_t time_of_process_start;
extern int quiet_level;