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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user