… | |
… | |
24 | my ($pid, $status) = @_; |
24 | my ($pid, $status) = @_; |
25 | ... |
25 | ... |
26 | }; |
26 | }; |
27 | |
27 | |
28 | # called when event loop idle (if applicable) |
28 | # called when event loop idle (if applicable) |
29 | my $w = AE::idle { ... }; |
29 | my $w = AE::idle sub { ... }; |
30 | |
30 | |
31 | my $w = AE::cv; # stores whether a condition was flagged |
31 | my $w = AE::cv; # stores whether a condition was flagged |
32 | $w->send; # wake up current and all future recv's |
32 | $w->send; # wake up current and all future recv's |
33 | $w->recv; # enters "main loop" till $condvar gets ->send |
33 | $w->recv; # enters "main loop" till $condvar gets ->send |
34 | # use a condvar in callback mode: |
34 | # use a condvar in callback mode: |
… | |
… | |
155 | |
155 | |
156 | =item AE::time |
156 | =item AE::time |
157 | |
157 | |
158 | Return the current time (not cached, always consults a hardware clock). |
158 | Return the current time (not cached, always consults a hardware clock). |
159 | |
159 | |
|
|
160 | =item AE::postpone { BLOCK } |
|
|
161 | |
|
|
162 | Exactly the same as C<AnyEvent:::postpone>. |
|
|
163 | |
|
|
164 | =item AE::log $level, $msg[, @args] |
|
|
165 | |
|
|
166 | Exactly the same as C<AnyEvent::log> (or C<AnyEvent::Log::log>). |
|
|
167 | |
160 | =back |
168 | =back |
161 | |
169 | |
162 | =head1 AUTHOR |
170 | =head1 AUTHOR |
163 | |
171 | |
164 | Marc Lehmann <schmorp@schmorp.de> |
172 | Marc Lehmann <schmorp@schmorp.de> |