ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.171 by root, Sun Dec 9 02:12:43 2007 UTC vs.
Revision 1.172 by root, Sun Dec 9 02:27:44 2007 UTC

1546ev_clear_pending (EV_P_ void *w) 1546ev_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
1561void inline_size 1562void inline_size
1562pri_adjust (EV_P_ W w) 1563pri_adjust (EV_P_ W w)
1563{ 1564{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines