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

Comparing libev/ev.c (file contents):
Revision 1.166 by root, Sat Dec 8 03:53:36 2007 UTC vs.
Revision 1.167 by root, Sat Dec 8 04:02:31 2007 UTC

1532 pendings [ABSPRI (w)][w->pending - 1].w = 0; 1532 pendings [ABSPRI (w)][w->pending - 1].w = 0;
1533 w->pending = 0; 1533 w->pending = 0;
1534 } 1534 }
1535} 1535}
1536 1536
1537void 1537int
1538ev_clear_pending (EV_P_ void *w, int invoke) 1538ev_clear_pending (EV_P_ void *w)
1539{ 1539{
1540 W w_ = (W)w; 1540 W w_ = (W)w;
1541 int pending = w_->pending; 1541 int pending = w_->pending;
1542 1542
1543 if (pending) 1543 if (!pending)
1544 { 1544 return 0;
1545
1546 w_->pending = 0;
1545 ANPENDING *p = pendings [ABSPRI (w_)] + pending - 1; 1547 ANPENDING *p = pendings [ABSPRI (w_)] + pending - 1;
1546
1547 w_->pending = 0;
1548 p->w = 0; 1548 p->w = 0;
1549 1549
1550 if (invoke) 1550 return p->events;
1551 EV_CB_INVOKE (w_, p->events);
1552 }
1553} 1551}
1554 1552
1555void inline_size 1553void inline_size
1556pri_adjust (EV_P_ W w) 1554pri_adjust (EV_P_ W w)
1557{ 1555{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines