diff options
author | root <root> | 2008-09-08 17:24:39 +0000 |
---|---|---|
committer | root <root> | 2008-09-08 17:24:39 +0000 |
commit | dafe1af050d0634b467b94369ffc99b239a59fe6 (patch) | |
tree | edda0d43ae06f2036b51d91ea5939866bbd4c67e | |
parent | 78c9d94f390b9cbee7de2f26f0585d790058e8c4 (diff) |
*** empty log message ***
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | Symbols.ev | 1 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | ev.c | 6 | ||||
-rw-r--r-- | ev.h | 1 | ||||
-rw-r--r-- | ev.pod | 2 |
6 files changed, 12 insertions, 2 deletions
@@ -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 @@ -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 @@ -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 @@ -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 @@ -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<ev_now ()> by calling C<ev_now_update ()>. |