diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-11 13:48:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-11 13:48:39 -0400 |
commit | 72ea4a8f081318c60c460cef5d9daf55e399c434 (patch) | |
tree | d5b98ca36b4fdeb4eef0d949764cfc11d4f7c2da /src/common/timers.h | |
parent | 7a83cf75dc55dbac91ff5c0daf7c7418493cbea7 (diff) | |
download | tor-72ea4a8f081318c60c460cef5d9daf55e399c434.tar.gz tor-72ea4a8f081318c60c460cef5d9daf55e399c434.zip |
Extract the important parts of the run-pending-timers function.
Our unit tests will need this, so that they can simulate advancing
time without getting libevent involved.
Diffstat (limited to 'src/common/timers.h')
-rw-r--r-- | src/common/timers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/timers.h b/src/common/timers.h index e816630e6d..d9602cd2ae 100644 --- a/src/common/timers.h +++ b/src/common/timers.h @@ -22,5 +22,9 @@ void timer_free(tor_timer_t *t); void timers_initialize(void); void timers_shutdown(void); +#ifdef TOR_TIMERS_PRIVATE +STATIC void timers_run_pending(void); +#endif + #endif |