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.
This commit is contained in:
Sebastian Hahn
2015-08-20 16:48:13 +02:00
committed by Nick Mathewson
parent 2657ea802b
commit 32220d38c0
5 changed files with 33 additions and 25 deletions
+2 -2
View File
@@ -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_;