Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 12 years ago
parent
commit
0aad32c7de
  1. 1
      Changes
  2. 5
      ev++.h
  3. 2
      ev.pod

1
Changes

@ -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

5
ev++.h

@ -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

2
ev.pod

@ -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

Loading…
Cancel
Save