Browse Source

forgot to ev_stop in ev_embed_stop

master
Marc Alexander Lehmann 11 years ago
parent
commit
bb9d99f062
2 changed files with 8 additions and 4 deletions
  1. +2
    -0
      Changes
  2. +6
    -4
      ev.c

+ 2
- 0
Changes View File

@ -1,5 +1,7 @@
Revision history for libev, a high-performance and full-featured event loop.
- ev_embed_stop did not correctly stop the watcher (very good
testcase by Vladimir Timofeev).
- applied win32 fixes by Michael Lenaghan.
- remove dependency on sys/queue.h on freebsd (patch by Vanilla Hsu).
- configure now prepends -O3, not appends it, so one can still


+ 6
- 4
ev.c View File

@ -2590,11 +2590,11 @@ ev_timer_stop (EV_P_ ev_timer *w)
}
}
EV_FREQUENT_CHECK;
ev_at (w) -= mn_now;
ev_stop (EV_A_ (W)w);
EV_FREQUENT_CHECK;
}
void noinline
@ -2683,9 +2683,9 @@ ev_periodic_stop (EV_P_ ev_periodic *w)
}
}
EV_FREQUENT_CHECK;
ev_stop (EV_A_ (W)w);
EV_FREQUENT_CHECK;
}
void noinline
@ -3431,6 +3431,8 @@ ev_embed_stop (EV_P_ ev_embed *w)
ev_prepare_stop (EV_A_ &w->prepare);
ev_fork_stop (EV_A_ &w->fork);
ev_stop (EV_A_ (W)w);
EV_FREQUENT_CHECK;
}
#endif


Loading…
Cancel
Save