diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-09 12:40:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-10 09:01:56 -0400 |
commit | e722bba263e6c4648fff4259a14677993697337c (patch) | |
tree | f87f3600309992e37b0c0112599766e0c55b9d8e /src/or/main.h | |
parent | 4218511ecd8a1facbd38d744b1bd518c05517988 (diff) | |
download | tor-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.h | 1 |
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; |