From 39cb04335f9fd5c3268c808bac549f531fe389a3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 3 Oct 2017 11:09:44 -0400 Subject: Add wrappers for event_base_loopexit and event_base_loopbreak. --- src/test/test_workqueue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/test_workqueue.c') 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); -- cgit v1.2.3-54-g00ecf