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

Comparing libev/ev.c (file contents):
Revision 1.361 by root, Sun Oct 24 19:01:01 2010 UTC vs.
Revision 1.362 by root, Sun Oct 24 19:15:52 2010 UTC

3592 3592
3593 ev_start (EV_A_ (W)w, ++cleanupcnt); 3593 ev_start (EV_A_ (W)w, ++cleanupcnt);
3594 array_needsize (ev_cleanup *, cleanups, cleanupmax, cleanupcnt, EMPTY2); 3594 array_needsize (ev_cleanup *, cleanups, cleanupmax, cleanupcnt, EMPTY2);
3595 cleanups [cleanupcnt - 1] = w; 3595 cleanups [cleanupcnt - 1] = w;
3596 3596
3597 /* cleanup watchers should never keep a refcount on the loop */
3598 ev_unref (EV_A);
3597 EV_FREQUENT_CHECK; 3599 EV_FREQUENT_CHECK;
3598} 3600}
3599 3601
3600void 3602void
3601ev_cleanup_stop (EV_P_ ev_cleanup *w) 3603ev_cleanup_stop (EV_P_ ev_cleanup *w)
3603 clear_pending (EV_A_ (W)w); 3605 clear_pending (EV_A_ (W)w);
3604 if (expect_false (!ev_is_active (w))) 3606 if (expect_false (!ev_is_active (w)))
3605 return; 3607 return;
3606 3608
3607 EV_FREQUENT_CHECK; 3609 EV_FREQUENT_CHECK;
3610 ev_ref (EV_A);
3608 3611
3609 { 3612 {
3610 int active = ev_active (w); 3613 int active = ev_active (w);
3611 3614
3612 cleanups [active - 1] = cleanups [--cleanupcnt]; 3615 cleanups [active - 1] = cleanups [--cleanupcnt];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines