… | |
… | |
1546 | ev_clear_pending (EV_P_ void *w) |
1546 | ev_clear_pending (EV_P_ void *w) |
1547 | { |
1547 | { |
1548 | W w_ = (W)w; |
1548 | W w_ = (W)w; |
1549 | int pending = w_->pending; |
1549 | int pending = w_->pending; |
1550 | |
1550 | |
1551 | if (!pending) |
1551 | if (expect_true (pending)) |
|
|
1552 | { |
|
|
1553 | ANPENDING *p = pendings [ABSPRI (w_)] + pending - 1; |
|
|
1554 | w_->pending = 0; |
|
|
1555 | p->w = 0; |
|
|
1556 | return p->events; |
|
|
1557 | } |
|
|
1558 | else |
1552 | return 0; |
1559 | return 0; |
1553 | |
|
|
1554 | w_->pending = 0; |
|
|
1555 | ANPENDING *p = pendings [ABSPRI (w_)] + pending - 1; |
|
|
1556 | p->w = 0; |
|
|
1557 | |
|
|
1558 | return p->events; |
|
|
1559 | } |
1560 | } |
1560 | |
1561 | |
1561 | void inline_size |
1562 | void inline_size |
1562 | pri_adjust (EV_P_ W w) |
1563 | pri_adjust (EV_P_ W w) |
1563 | { |
1564 | { |