ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP.pm
(Generate patch)

Comparing AnyEvent-MP/MP.pm (file contents):
Revision 1.42 by root, Sun Aug 9 00:41:49 2009 UTC vs.
Revision 1.44 by root, Wed Aug 12 21:39:58 2009 UTC

105 105
106=cut 106=cut
107 107
108package AnyEvent::MP; 108package AnyEvent::MP;
109 109
110use AnyEvent::MP::Base; 110use AnyEvent::MP::Kernel;
111 111
112use common::sense; 112use common::sense;
113 113
114use Carp (); 114use Carp ();
115 115
116use AE (); 116use AE ();
117 117
118use base "Exporter"; 118use base "Exporter";
119 119
120our $VERSION = '0.1'; 120our $VERSION = $AnyEvent::MP::Kernel::VERSION;
121
121our @EXPORT = qw( 122our @EXPORT = qw(
122 NODE $NODE *SELF node_of _any_ 123 NODE $NODE *SELF node_of _any_
123 resolve_node initialise_node 124 resolve_node initialise_node
124 snd rcv mon kil reg psub spawn 125 snd rcv mon kil reg psub spawn
125 port 126 port
518In the first form (callback), the callback is simply called with any 519In the first form (callback), the callback is simply called with any
519number of C<@reason> elements (no @reason means that the port was deleted 520number of C<@reason> elements (no @reason means that the port was deleted
520"normally"). Note also that I<< the callback B<must> never die >>, so use 521"normally"). Note also that I<< the callback B<must> never die >>, so use
521C<eval> if unsure. 522C<eval> if unsure.
522 523
523In the second form (another port given), the other port (C<$rcvport) 524In the second form (another port given), the other port (C<$rcvport>)
524will be C<kil>'ed with C<@reason>, iff a @reason was specified, i.e. on 525will be C<kil>'ed with C<@reason>, iff a @reason was specified, i.e. on
525"normal" kils nothing happens, while under all other conditions, the other 526"normal" kils nothing happens, while under all other conditions, the other
526port is killed with the same reason. 527port is killed with the same reason.
527 528
528The third form (kill self) is the same as the second form, except that 529The third form (kill self) is the same as the second form, except that

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines