mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
committed by
Nick Mathewson
parent
2657ea802b
commit
32220d38c0
+2
-2
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user