diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-04-10 14:22:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-04-10 14:22:33 +0000 |
commit | 4868f4d217d19d4b0f4e45c4648460c21bc5f80f (patch) | |
tree | ea6d3591e9b4004690dac2a61ef667f191afd13f /event-internal.h | |
parent | e3d82497c99d9cb3b1b23cc746b448811910e260 (diff) | |
download | libevent-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.h | 4 |
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; |