From dafe1af050d0634b467b94369ffc99b239a59fe6 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 8 Sep 2008 17:24:39 +0000 Subject: *** empty log message *** --- Changes | 2 ++ Symbols.ev | 1 + configure.ac | 2 +- ev.c | 6 ++++++ ev.h | 1 + ev.pod | 2 +- 6 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 7fb94b0..4fa66ef 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for libev, a high-performance and full-featured event loop. WISH? monotonic clocks times/GetTickCount for coarse corrections? +3.44 + - new function: ev_now_update (loop). - verify_watcher was not marked static. 3.43 Sun Jul 6 05:34:41 CEST 2008 diff --git a/Symbols.ev b/Symbols.ev index 92dc8d2..9fe7ec5 100644 --- a/Symbols.ev +++ b/Symbols.ev @@ -32,6 +32,7 @@ ev_loop_fork ev_loop_new ev_loop_verify ev_now +ev_now_update ev_once ev_periodic_again ev_periodic_start diff --git a/configure.ac b/configure.ac index efa347f..be4850f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ AC_INIT AC_CONFIG_SRCDIR([ev_epoll.c]) -AM_INIT_AUTOMAKE(libev,3.43) +AM_INIT_AUTOMAKE(libev,3.44) AC_CONFIG_HEADERS([config.h]) AM_MAINTAINER_MODE diff --git a/ev.c b/ev.c index aab04d3..bc8b8d4 100644 --- a/ev.c +++ b/ev.c @@ -1911,6 +1911,12 @@ ev_unref (EV_P) --activecnt; } +void +ev_now_update (EV_P) +{ + time_update (EV_A_ 1e100); +} + static int loop_done; void diff --git a/ev.h b/ev.h index d661d9a..97f3e6d 100644 --- a/ev.h +++ b/ev.h @@ -456,6 +456,7 @@ void ev_loop_fork (EV_P); void ev_loop_verify (EV_P); ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */ +void ev_now_update (EV_P); #else diff --git a/ev.pod b/ev.pod index 5fb11d4..1c6c94a 100644 --- a/ev.pod +++ b/ev.pod @@ -1231,7 +1231,7 @@ timeout on the current time, use something like this to adjust for this: ev_timer_set (&timer, after + ev_now () - ev_time (), 0.); -If the event loop is suspended for a long time, one can also force an +If the event loop is suspended for a long time, you can also force an update of the time returned by C by calling C. -- cgit v1.2.3