diff options
author | Niels Provos <provos@gmail.com> | 2008-12-23 16:37:01 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2008-12-23 16:37:01 +0000 |
commit | 02b2b4d1bee7dfd5d75d0a376ce64fc7298e350f (patch) | |
tree | 9290d648cbc4b21b4f36dc57817e15e6658be787 /include/event2/event_struct.h | |
parent | 97cebce8fdc400401093f669a56e46bef518386e (diff) | |
download | libevent-02b2b4d1bee7dfd5d75d0a376ce64fc7298e350f.tar.gz |
Restructure the event backends so that they do not need to keep track of events themselves, as a side effect multiple events can use the same fd or signal.
svn:r972
Diffstat (limited to 'include/event2/event_struct.h')
-rw-r--r-- | include/event2/event_struct.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/event2/event_struct.h b/include/event2/event_struct.h index 3c0d9b38..331b64a0 100644 --- a/include/event2/event_struct.h +++ b/include/event2/event_struct.h @@ -85,6 +85,11 @@ struct event { evutil_socket_t ev_fd; union { + /* used for io events */ + struct { + TAILQ_ENTRY (event) (ev_io_next); + } ev_io; + /* used by signal events */ struct { TAILQ_ENTRY (event) (ev_signal_next); |