diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-03 11:09:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-05 12:36:05 -0400 |
commit | 39cb04335f9fd5c3268c808bac549f531fe389a3 (patch) | |
tree | 493fabac57156ef8fe53304ded4ba50e25adf3dd /src/test/test_workqueue.c | |
parent | f0d2733b468984a7749fb7d506318200ca19e48f (diff) | |
download | tor-39cb04335f9fd5c3268c808bac549f531fe389a3.tar.gz tor-39cb04335f9fd5c3268c808bac549f531fe389a3.zip |
Add wrappers for event_base_loopexit and event_base_loopbreak.
Diffstat (limited to 'src/test/test_workqueue.c')
-rw-r--r-- | src/test/test_workqueue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_workqueue.c b/src/test/test_workqueue.c index 2b03173717..de7884ff99 100644 --- a/src/test/test_workqueue.c +++ b/src/test/test_workqueue.c @@ -230,7 +230,7 @@ add_n_work_items(threadpool_t *tp, int n) ent = add_work(tp); if (! ent) { puts("Z"); - tor_event_base_loopexit(tor_libevent_get_base(), NULL); + tor_libevent_exit_loop_after_delay(tor_libevent_get_base(), NULL); return -1; } if (n_try_cancel < opt_n_cancel && @@ -308,7 +308,7 @@ replysock_readable_cb(tor_socket_t sock, short what, void *arg) handle_reply_shutdown, NULL); { struct timeval limit = { 2, 0 }; - tor_event_base_loopexit(tor_libevent_get_base(), &limit); + tor_libevent_exit_loop_after_delay(tor_libevent_get_base(), &limit); } } } @@ -433,7 +433,7 @@ main(int argc, char **argv) { struct timeval limit = { 180, 0 }; - tor_event_base_loopexit(tor_libevent_get_base(), &limit); + tor_libevent_exit_loop_after_delay(tor_libevent_get_base(), &limit); } event_base_loop(tor_libevent_get_base(), 0); |