… | |
… | |
421 | This time simply fires at the wallclock time $at and doesn't |
421 | This time simply fires at the wallclock time $at and doesn't |
422 | repeat. It will not adjust when a time jump occurs, that is, if |
422 | repeat. It will not adjust when a time jump occurs, that is, if |
423 | it is to be run at January 1st 2011 then it will run when the |
423 | it is to be run at January 1st 2011 then it will run when the |
424 | system time reaches or surpasses this time. |
424 | system time reaches or surpasses this time. |
425 | |
425 | |
426 | * non-repeating interval timer ($interval > 0, $reschedule_cb = 0) |
426 | * repeating interval timer ($interval > 0, $reschedule_cb = 0) |
427 | |
427 | |
428 | In this mode the watcher will always be scheduled to time out at |
428 | In this mode the watcher will always be scheduled to time out at |
429 | the next "$at + N * $interval" time (for some integer N) and |
429 | the next "$at + N * $interval" time (for some integer N) and |
430 | then repeat, regardless of any time jumps. |
430 | then repeat, regardless of any time jumps. |
431 | |
431 | |
… | |
… | |
776 | managed automatically. |
776 | managed automatically. |
777 | |
777 | |
778 | The "embed_ns" variant doesn't start (activate) the newly created |
778 | The "embed_ns" variant doesn't start (activate) the newly created |
779 | watcher. |
779 | watcher. |
780 | |
780 | |
|
|
781 | ASYNC WATCHERS - how to wake up another event loop |
|
|
782 | Async watchers are provided by EV, but have little use in perl directly, |
|
|
783 | as perl neither supports threads nor direct access to signal handlers or |
|
|
784 | other contexts where they could be of value. |
|
|
785 | |
|
|
786 | It is, however, possible to use them from the XS level. |
|
|
787 | |
|
|
788 | Please see the libev documentation for further details. |
|
|
789 | |
781 | PERL SIGNALS |
790 | PERL SIGNALS |
782 | While Perl signal handling (%SIG) is not affected by EV, the behaviour |
791 | While Perl signal handling (%SIG) is not affected by EV, the behaviour |
783 | with EV is as the same as any other C library: Perl-signals will only be |
792 | with EV is as the same as any other C library: Perl-signals will only be |
784 | handled when Perl runs, which means your signal handler might be invoked |
793 | handled when Perl runs, which means your signal handler might be invoked |
785 | only the next time an event callback is invoked. |
794 | only the next time an event callback is invoked. |