summaryrefslogtreecommitdiff
path: root/event-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-04-10 14:22:33 +0000
committerNick Mathewson <nickm@torproject.org>2009-04-10 14:22:33 +0000
commit4868f4d217d19d4b0f4e45c4648460c21bc5f80f (patch)
treeea6d3591e9b4004690dac2a61ef667f191afd13f /event-internal.h
parente3d82497c99d9cb3b1b23cc746b448811910e260 (diff)
downloadlibevent-4868f4d217d19d4b0f4e45c4648460c21bc5f80f.tar.gz
Initial support for a lightweight 'deferred callbacks'.
A 'deferred callback' is just a function that we've queued in the event base. This ability is needed for some mt stuff, and for complex callback chains. For internal use only. svn:r1150
Diffstat (limited to 'event-internal.h')
-rw-r--r--event-internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/event-internal.h b/event-internal.h
index 4fbf6b8a..3d0bec6c 100644
--- a/event-internal.h
+++ b/event-internal.h
@@ -101,12 +101,16 @@ struct event_base {
struct event_list **activequeues;
int nactivequeues;
+ /* deferred callback management */
+ TAILQ_HEAD (deferred_cb_list, deferred_cb) deferred_cb_list;
+
/* for mapping io activity to events */
struct event_io_map io;
/* for mapping signal activity to events */
struct event_signal_map sigmap;
+
struct event_list eventqueue;
struct timeval event_tv;