diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-08-20 16:48:13 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-21 10:36:53 -0400 |
commit | 32220d38c04bdb0aeccfcd67715e11a655eb297b (patch) | |
tree | b5c86778b333b9cf2b7e98f57a8390f8d6dfe207 /src/test/test_workqueue.c | |
parent | 2657ea802bd9633aeea8774b32d64ed671624818 (diff) | |
download | tor-32220d38c04bdb0aeccfcd67715e11a655eb297b.tar.gz tor-32220d38c04bdb0aeccfcd67715e11a655eb297b.zip |
Ensure worker threads actually exit when it is time
This includes a small refactoring to use a new enum (workqueue_reply_t)
for the return values instead of just ints.
Diffstat (limited to 'src/test/test_workqueue.c')
-rw-r--r-- | src/test/test_workqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_workqueue.c b/src/test/test_workqueue.c index 1d2cd940c3..b6a10bb33f 100644 --- a/src/test/test_workqueue.c +++ b/src/test/test_workqueue.c @@ -70,7 +70,7 @@ mark_handled(int serial) #endif } -static int +static workqueue_reply_t workqueue_do_rsa(void *state, void *work) { rsa_work_t *rw = work; @@ -98,7 +98,7 @@ workqueue_do_rsa(void *state, void *work) return WQ_RPL_REPLY; } -static int +static workqueue_reply_t workqueue_do_shutdown(void *state, void *work) { (void)state; @@ -108,7 +108,7 @@ workqueue_do_shutdown(void *state, void *work) return WQ_RPL_SHUTDOWN; } -static int +static workqueue_reply_t workqueue_do_ecdh(void *state, void *work) { ecdh_work_t *ew = work; @@ -124,7 +124,7 @@ workqueue_do_ecdh(void *state, void *work) return WQ_RPL_REPLY; } -static int +static workqueue_reply_t workqueue_shutdown_error(void *state, void *work) { (void)state; |