]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
evloop: fix docs for threadpool_register_reply_event
authorcypherpunks <cypherpunks@torproject.org>
Sun, 30 Sep 2018 14:37:11 +0000 (14:37 +0000)
committercypherpunks <cypherpunks@torproject.org>
Wed, 17 Oct 2018 20:27:19 +0000 (20:27 +0000)
Commit 6a5f62f68f2c73dbbbbddb4fa3759586f4c2b0dc ultimately didn't
include the base argument, and the callback is named cb.

src/lib/evloop/workqueue.c
src/lib/evloop/workqueue.h

index 5e59b48fe6122cd070e0604d4c7f7234fc81353d..5471f87b046c516fd58c7e22dd53375482082cfb 100644 (file)
@@ -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.
  */
index da292d1f0592d14325668dc1e6883b2cbe611b68..10d5d47464d2ff9da664c00b30ddaf799c4eac93 100644 (file)
@@ -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));