diff options
| author | root <root> | 2009-12-26 09:21:54 +0000 | 
|---|---|---|
| committer | root <root> | 2009-12-26 09:21:54 +0000 | 
| commit | 48be09ae804dedbb4c1049607eac8e0083cdc60e (patch) | |
| tree | 8690bf72daafd4e282bfd6830c045cd97fc21968 | |
| parent | 281663f4e9b5029ab9cd09cf4754de3165138ab7 (diff) | |
*** empty log message ***
| -rw-r--r-- | Changes | 1 | ||||
| -rw-r--r-- | ev++.h | 5 | ||||
| -rw-r--r-- | ev.pod | 2 | 
3 files changed, 7 insertions, 1 deletions
| @@ -21,6 +21,7 @@ TODO: somehow unblock procmask?          - only replace ev_stat.prev when we detect an actual difference,            so prev is (almost) always different to attr. this might            have caused the probems with 04_stat.t. +        - add ev::timer->remaining () method to C++ API.  3.8  Sun Aug  9 14:30:45 CEST 2009  	- incompatible change: do not necessarily reset signal handler @@ -644,6 +644,11 @@ namespace ev {      {        ev_timer_again (EV_A_ static_cast<ev_timer *>(this));      } + +    ev_tstamp remaining () +    { +      return ev_timer_remaining (EV_A_ static_cast<ev_timer *>(this)); +    }    EV_END_WATCHER (timer, timer)    #if EV_PERIODIC_ENABLE @@ -1856,7 +1856,7 @@ C<repeat> value), or reset the running timer to the C<repeat> value.  This sounds a bit complicated, see L<Be smart about timeouts>, above, for a  usage example. -=item ev_timer_remaining (loop, ev_timer *) +=item ev_tstamp ev_timer_remaining (loop, ev_timer *)  Returns the remaining time until a timer fires. If the timer is active,  then this time is relative to the current event loop time, otherwise it's | 
