… | |
… | |
1044 | |
1044 | |
1045 | =back |
1045 | =back |
1046 | |
1046 | |
1047 | =head3 ASYNC WATCHERS - how to wake up another event loop |
1047 | =head3 ASYNC WATCHERS - how to wake up another event loop |
1048 | |
1048 | |
1049 | Async watchers are provided by EV, but have little use in perl directly, as perl |
1049 | Async watchers are provided by EV, but have little use in perl directly, |
1050 | neither supports threads nor direct access to signal handlers or other |
1050 | as perl neither supports threads running in parallel nor direct access to |
1051 | contexts where they could be of value. |
1051 | signal handlers or other contexts where they could be of value. |
1052 | |
1052 | |
1053 | It is, however, possible to use them from the XS level. |
1053 | It is, however, possible to use them from the XS level. |
1054 | |
1054 | |
1055 | Please see the libev documentation for further details. |
1055 | Please see the libev documentation for further details. |
1056 | |
1056 | |
… | |
… | |
1084 | my $async_check = EV::check sub { }; |
1084 | my $async_check = EV::check sub { }; |
1085 | |
1085 | |
1086 | This ensures that perl gets into control for a short time to handle any |
1086 | This ensures that perl gets into control for a short time to handle any |
1087 | pending signals, and also ensures (slightly) slower overall operation. |
1087 | pending signals, and also ensures (slightly) slower overall operation. |
1088 | |
1088 | |
1089 | =head1 THREADS |
1089 | =head1 ITHREADS |
1090 | |
1090 | |
1091 | Threads are not supported by this module in any way. Perl pseudo-threads |
1091 | Ithreads are not supported by this module in any way. Perl pseudo-threads |
1092 | is evil stuff and must die. As soon as Perl gains real threads I will work |
1092 | is evil stuff and must die. Real threads as provided by Coro are fully |
1093 | on thread support for it. |
1093 | supported (and enhanced support is available via L<Coro::EV>). |
1094 | |
1094 | |
1095 | =head1 FORK |
1095 | =head1 FORK |
1096 | |
1096 | |
1097 | Most of the "improved" event delivering mechanisms of modern operating |
1097 | Most of the "improved" event delivering mechanisms of modern operating |
1098 | systems have quite a few problems with fork(2) (to put it bluntly: it is |
1098 | systems have quite a few problems with fork(2) (to put it bluntly: it is |