… | |
… | |
30 | This module (-family) implements a simple message passing framework. |
30 | This module (-family) implements a simple message passing framework. |
31 | |
31 | |
32 | Despite its simplicity, you can securely message other processes running |
32 | Despite its simplicity, you can securely message other processes running |
33 | on the same or other hosts. |
33 | on the same or other hosts. |
34 | |
34 | |
|
|
35 | For an introduction to this module family, see the L<AnyEvent::MP::Intro> |
|
|
36 | manual page. |
|
|
37 | |
35 | At the moment, this module family is severly brokena nd underdocumented, |
38 | At the moment, this module family is severly broken and underdocumented, |
36 | so do not use. This was uploaded mainly to reserve the CPAN namespace - |
39 | so do not use. This was uploaded mainly to reserve the CPAN namespace - |
37 | stay tuned! |
40 | stay tuned! The basic API should be finished, however. |
38 | |
41 | |
39 | =head1 CONCEPTS |
42 | =head1 CONCEPTS |
40 | |
43 | |
41 | =over 4 |
44 | =over 4 |
42 | |
45 | |
… | |
… | |
241 | sub mon_guard { |
244 | sub mon_guard { |
242 | my ($port, @refs) = @_; |
245 | my ($port, @refs) = @_; |
243 | |
246 | |
244 | mon $port, sub { 0 && @refs } |
247 | mon $port, sub { 0 && @refs } |
245 | } |
248 | } |
|
|
249 | |
|
|
250 | =item lnk $port1, $port2 |
|
|
251 | |
|
|
252 | Link two ports. This is simply a shorthand for: |
|
|
253 | |
|
|
254 | mon $port1, $port2; |
|
|
255 | mon $port2, $port1; |
|
|
256 | |
|
|
257 | It means that if either one is killed abnormally, the other one gets |
|
|
258 | killed as well. |
246 | |
259 | |
247 | =item $local_port = port |
260 | =item $local_port = port |
248 | |
261 | |
249 | Create a new local port object that supports message matching. |
262 | Create a new local port object that supports message matching. |
250 | |
263 | |