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

Comparing libev/ev.c (file contents):
Revision 1.257 by root, Sun Jun 29 22:32:51 2008 UTC vs.
Revision 1.260 by root, Mon Sep 8 17:24:39 2008 UTC

1511{ 1511{
1512 postfork = 1; /* must be in line with ev_default_fork */ 1512 postfork = 1; /* must be in line with ev_default_fork */
1513} 1513}
1514 1514
1515#if EV_VERIFY 1515#if EV_VERIFY
1516void noinline 1516static void noinline
1517verify_watcher (EV_P_ W w) 1517verify_watcher (EV_P_ W w)
1518{ 1518{
1519 assert (("watcher has invalid priority", ABSPRI (w) >= 0 && ABSPRI (w) < NUMPRI)); 1519 assert (("watcher has invalid priority", ABSPRI (w) >= 0 && ABSPRI (w) < NUMPRI));
1520 1520
1521 if (w->pending) 1521 if (w->pending)
1907 1907
1908void 1908void
1909ev_unref (EV_P) 1909ev_unref (EV_P)
1910{ 1910{
1911 --activecnt; 1911 --activecnt;
1912}
1913
1914void
1915ev_now_update (EV_P)
1916{
1917 time_update (EV_A_ 1e100);
1912} 1918}
1913 1919
1914static int loop_done; 1920static int loop_done;
1915 1921
1916void 1922void
2982once_cb (EV_P_ struct ev_once *once, int revents) 2988once_cb (EV_P_ struct ev_once *once, int revents)
2983{ 2989{
2984 void (*cb)(int revents, void *arg) = once->cb; 2990 void (*cb)(int revents, void *arg) = once->cb;
2985 void *arg = once->arg; 2991 void *arg = once->arg;
2986 2992
2987 ev_io_stop (EV_A_ &once->io); 2993 ev_io_stop (EV_A_ &once->io);
2988 ev_timer_stop (EV_A_ &once->to); 2994 ev_timer_stop (EV_A_ &once->to);
2989 ev_free (once); 2995 ev_free (once);
2990 2996
2991 cb (revents, arg); 2997 cb (revents, arg);
2992} 2998}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines