aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2015-08-20 16:48:13 +0200
committerNick Mathewson <nickm@torproject.org>2015-08-21 10:36:53 -0400
commit32220d38c04bdb0aeccfcd67715e11a655eb297b (patch)
treeb5c86778b333b9cf2b7e98f57a8390f8d6dfe207 /src/or/cpuworker.c
parent2657ea802bd9633aeea8774b32d64ed671624818 (diff)
downloadtor-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/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index d511ecf84c..76d97e05f2 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -160,7 +160,7 @@ typedef struct cpuworker_job_u {
} u;
} cpuworker_job_t;
-static int
+static workqueue_reply_t
update_state_threadfn(void *state_, void *work_)
{
worker_state_t *state = state_;
@@ -387,7 +387,7 @@ cpuworker_onion_handshake_replyfn(void *work_)
}
/** Implementation function for onion handshake requests. */
-static int
+static workqueue_reply_t
cpuworker_onion_handshake_threadfn(void *state_, void *work_)
{
worker_state_t *state = state_;