diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-04-09 20:04:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-04-09 20:04:24 -0400 |
commit | d313c29349dc15f11aba7f6f6936d0118546e5af (patch) | |
tree | 0745536516f344a2ca7f0da65fd2e36fa6f8633f /evbuffer-internal.h | |
parent | 6494772e32017b27037ef1f6fc849abbf3d1c9f2 (diff) | |
download | libevent-d313c29349dc15f11aba7f6f6936d0118546e5af.tar.gz |
Use LIST rather than TAILQ for evbuffer callbacks
There's no reason to traverse these out-of-order, and we never defined
the order that you'd get your callbacks on an evbuffer if you happened
to add more than one.
Diffstat (limited to 'evbuffer-internal.h')
-rw-r--r-- | evbuffer-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/evbuffer-internal.h b/evbuffer-internal.h index 01f5703a..61efe51b 100644 --- a/evbuffer-internal.h +++ b/evbuffer-internal.h @@ -59,7 +59,7 @@ extern "C" { * when bytes are added to or removed from the evbuffer. */ struct evbuffer_cb_entry { /** Structures to implement a doubly-linked queue of callbacks */ - TAILQ_ENTRY(evbuffer_cb_entry) next; + LIST_ENTRY(evbuffer_cb_entry) next; /** The callback function to invoke when this callback is called. If EVBUFFER_CB_OBSOLETE is set in flags, the cb_obsolete field is valid; otherwise, cb_func is valid. */ @@ -144,7 +144,7 @@ struct evbuffer { struct deferred_cb deferred; /** A doubly-linked-list of callback functions */ - TAILQ_HEAD(evbuffer_cb_queue, evbuffer_cb_entry) callbacks; + LIST_HEAD(evbuffer_cb_queue, evbuffer_cb_entry) callbacks; /** The parent bufferevent object this evbuffer belongs to. * NULL if the evbuffer stands alone. */ |