ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.pm
(Generate patch)

Comparing EV/EV.pm (file contents):
Revision 1.20 by root, Thu Nov 1 17:17:32 2007 UTC vs.
Revision 1.22 by root, Fri Nov 2 11:02:22 2007 UTC

291EV::periodic will try to run the callback at the next possible time where 291EV::periodic will try to run the callback at the next possible time where
292C<$time = $at (mod $interval)>, regardless of any time jumps. 292C<$time = $at (mod $interval)>, regardless of any time jumps.
293 293
294This periodic timer is based on "wallclock time", that is, if the clock 294This periodic timer is based on "wallclock time", that is, if the clock
295changes (C<ntp>, C<date -s> etc.), then the timer will nevertheless run at 295changes (C<ntp>, C<date -s> etc.), then the timer will nevertheless run at
296the specified time. 296the specified time. This means it will never drift (it might jitter, but
297it will not drift).
297 298
298The C<periodic_ns> variant doesn't start (activate) the newly created watcher. 299The C<periodic_ns> variant doesn't start (activate) the newly created watcher.
299 300
300=item $w->set ($at, $interval) 301=item $w->set ($at, $interval)
301 302
322=item $w->set ($signal) 323=item $w->set ($signal)
323 324
324Reconfigures the watcher, see the constructor above for details. Can be at 325Reconfigures the watcher, see the constructor above for details. Can be at
325any time. 326any time.
326 327
328=item $current_signum = $w->signal
329
330=item $old_signum = $w->signal ($new_signal)
331
332Returns the previously set signal (always as a number not name) and
333optionally set a new one.
334
327 335
328=item $w = EV::child $pid, $callback 336=item $w = EV::child $pid, $callback
329 337
330=item $w = EV::child_ns $pid, $callback 338=item $w = EV::child_ns $pid, $callback
331 339
344 352
345=item $w->set ($pid) 353=item $w->set ($pid)
346 354
347Reconfigures the watcher, see the constructor above for details. Can be at 355Reconfigures the watcher, see the constructor above for details. Can be at
348any time. 356any time.
357
358=item $current_pid = $w->pid
359
360=item $old_pid = $w->pid ($new_pid)
361
362Returns the previously set process id and optionally set a new one.
349 363
350 364
351=item $w = EV::idle $callback 365=item $w = EV::idle $callback
352 366
353=item $w = EV::idle_ns $callback 367=item $w = EV::idle_ns $callback

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines