[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] evloop: fix docs for threadpool_register_reply_event
commit a56451af4269235df45416a37a5e37be6e63c827
Author: cypherpunks <cypherpunks@xxxxxxxxxxxxxx>
Date: Sun Sep 30 14:37:11 2018 +0000
evloop: fix docs for threadpool_register_reply_event
Commit 6a5f62f68f2c73dbbbbddb4fa3759586f4c2b0dc ultimately didn't
include the base argument, and the callback is named cb.
---
src/lib/evloop/workqueue.c | 4 ++--
src/lib/evloop/workqueue.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/lib/evloop/workqueue.c b/src/lib/evloop/workqueue.c
index 5e59b48fe..5471f87b0 100644
--- a/src/lib/evloop/workqueue.c
+++ b/src/lib/evloop/workqueue.c
@@ -622,8 +622,8 @@ reply_event_cb(evutil_socket_t sock, short events, void *arg)
tp->reply_cb(tp);
}
-/** Register the threadpool <b>tp</b>'s reply queue with the libevent
- * mainloop of <b>base</b>. If <b>tp</b> is provided, it is run after
+/** Register the threadpool <b>tp</b>'s reply queue with Tor's global
+ * libevent mainloop. If <b>cb</b> is provided, it is run after
* each time there is work to process from the reply queue. Return 0 on
* success, -1 on failure.
*/
diff --git a/src/lib/evloop/workqueue.h b/src/lib/evloop/workqueue.h
index da292d1f0..10d5d4746 100644
--- a/src/lib/evloop/workqueue.h
+++ b/src/lib/evloop/workqueue.h
@@ -63,7 +63,6 @@ replyqueue_t *threadpool_get_replyqueue(threadpool_t *tp);
replyqueue_t *replyqueue_new(uint32_t alertsocks_flags);
void replyqueue_process(replyqueue_t *queue);
-struct event_base;
int threadpool_register_reply_event(threadpool_t *tp,
void (*cb)(threadpool_t *tp));
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits