diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-03 12:49:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-05 12:36:28 -0400 |
commit | 6a5f62f68f2c73dbbbbddb4fa3759586f4c2b0dc (patch) | |
tree | fbe0eb2903fd46449070f552c756488763cf1b9f /src/common/workqueue.h | |
parent | b3586629c9ce41393898b381159ba331906f8fc3 (diff) | |
download | tor-6a5f62f68f2c73dbbbbddb4fa3759586f4c2b0dc.tar.gz tor-6a5f62f68f2c73dbbbbddb4fa3759586f4c2b0dc.zip |
Move responsibility for threadpool reply-handler events to workqueue
This change makes cpuworker and test_workqueue no longer need to
include event2/event.h. Now workqueue.c needs to include it, but
that is at least somewhat logical here.
Diffstat (limited to 'src/common/workqueue.h')
-rw-r--r-- | src/common/workqueue.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/workqueue.h b/src/common/workqueue.h index eb885e680d..e1fe612e2b 100644 --- a/src/common/workqueue.h +++ b/src/common/workqueue.h @@ -56,8 +56,11 @@ threadpool_t *threadpool_new(int n_threads, replyqueue_t *threadpool_get_replyqueue(threadpool_t *tp); replyqueue_t *replyqueue_new(uint32_t alertsocks_flags); -tor_socket_t replyqueue_get_socket(replyqueue_t *rq); void replyqueue_process(replyqueue_t *queue); +struct event_base; +int threadpool_register_reply_event(threadpool_t *tp, + void (*cb)(threadpool_t *tp)); + #endif /* !defined(TOR_WORKQUEUE_H) */ |