… | |
… | |
119 | package EV; |
119 | package EV; |
120 | |
120 | |
121 | use common::sense; |
121 | use common::sense; |
122 | |
122 | |
123 | BEGIN { |
123 | BEGIN { |
124 | our $VERSION = 4.27; |
124 | our $VERSION = '4.31'; |
125 | use XSLoader; |
125 | use XSLoader; |
126 | local $^W = 0; # avoid spurious warning |
126 | local $^W = 0; # avoid spurious warning |
127 | XSLoader::load "EV", $VERSION; |
127 | XSLoader::load "EV", $VERSION; |
128 | } |
128 | } |
129 | |
129 | |
… | |
… | |
370 | |
370 | |
371 | =item EV::feed_signal $signal |
371 | =item EV::feed_signal $signal |
372 | |
372 | |
373 | Feed a signal event into EV - unlike C<EV::feed_signal_event>, this works |
373 | Feed a signal event into EV - unlike C<EV::feed_signal_event>, this works |
374 | regardless of which loop has registered the signal, and is mainly useful |
374 | regardless of which loop has registered the signal, and is mainly useful |
375 | fro custom signal implementations. |
375 | for custom signal implementations. |
376 | |
376 | |
377 | =item EV::set_io_collect_interval $time |
377 | =item EV::set_io_collect_interval $time |
378 | |
378 | |
379 | =item $loop->set_io_collect_interval ($time) |
379 | =item $loop->set_io_collect_interval ($time) |
380 | |
380 | |
… | |
… | |
646 | |
646 | |
647 | =item $after = $w->remaining |
647 | =item $after = $w->remaining |
648 | |
648 | |
649 | Calculates and returns the remaining time till the timer will fire. |
649 | Calculates and returns the remaining time till the timer will fire. |
650 | |
650 | |
|
|
651 | =item $old_repeat = $w->reapat ([$new_repeat]) |
|
|
652 | |
|
|
653 | Returns the current value of the repeat attribute and optionally sets a |
|
|
654 | new one. Setting the new one will not restart the watcher - if the watcher |
|
|
655 | is active, the new repeat value is used whenever it expires next. |
|
|
656 | |
651 | =back |
657 | =back |
652 | |
658 | |
653 | |
659 | |
654 | =head3 PERIODIC WATCHERS - to cron or not to cron? |
660 | =head3 PERIODIC WATCHERS - to cron or not to cron? |
655 | |
661 | |
… | |
… | |
747 | Simply stops and starts the watcher again. |
753 | Simply stops and starts the watcher again. |
748 | |
754 | |
749 | =item $time = $w->at |
755 | =item $time = $w->at |
750 | |
756 | |
751 | Return the time that the watcher is expected to trigger next. |
757 | Return the time that the watcher is expected to trigger next. |
|
|
758 | |
|
|
759 | =item $old_offset = $w->offset ([$new_offset]) |
|
|
760 | |
|
|
761 | Returns the current value of the offset attribute and optionally sets a |
|
|
762 | new one. Setting the new one will not restart the watcher - if the watcher |
|
|
763 | is active, the new offset value is used whenever it expires next. |
|
|
764 | |
|
|
765 | =item $old_interval = $w->interval ([$new_interval]) |
|
|
766 | |
|
|
767 | See above, for the interval attribute. |
|
|
768 | |
|
|
769 | =item $old_reschedule_cb = $w->reschedule_cb ([$new_reschedule_xcb]) |
|
|
770 | |
|
|
771 | See above, for the reschedule callback. |
752 | |
772 | |
753 | =back |
773 | =back |
754 | |
774 | |
755 | |
775 | |
756 | =head3 SIGNAL WATCHERS - signal me when a signal gets signalled! |
776 | =head3 SIGNAL WATCHERS - signal me when a signal gets signalled! |