mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
(trunk libevent) add more debugging assertions so I can continue to torture exiva...
This commit is contained in:
parent
f01f00557c
commit
848bf5cd41
1 changed files with 7 additions and 0 deletions
7
third-party/libevent/event.c
vendored
7
third-party/libevent/event.c
vendored
|
@ -836,6 +836,9 @@ event_del(struct event *ev)
|
|||
void
|
||||
event_active(struct event *ev, int res, short ncalls)
|
||||
{
|
||||
assert(ev != NULL);
|
||||
assert(res != 0);
|
||||
|
||||
/* We get different kinds of events, add them together */
|
||||
if (ev->ev_flags & EVLIST_ACTIVE) {
|
||||
ev->ev_res |= res;
|
||||
|
@ -974,6 +977,10 @@ event_queue_remove(struct event_base *base, struct event *ev, int queue)
|
|||
void
|
||||
event_queue_insert(struct event_base *base, struct event *ev, int queue)
|
||||
{
|
||||
assert(base != NULL);
|
||||
assert(ev != NULL);
|
||||
assert(queue != 0);
|
||||
|
||||
if (ev->ev_flags & queue) {
|
||||
/* Double insertion is possible for active events */
|
||||
if (queue & EVLIST_ACTIVE)
|
||||
|
|
Loading…
Reference in a new issue