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

Comparing AnyEvent-MP/MP/Kernel.pm (file contents):
Revision 1.35 by root, Mon Aug 31 20:06:45 2009 UTC vs.
Revision 1.36 by root, Wed Sep 2 13:05:29 2009 UTC

138 138
139 $data 139 $data
140} 140}
141 141
142sub gen_uniq { 142sub gen_uniq {
143 alnumbits pack "wNa*", $$, time, nonce 2 143 alnumbits pack "nna*", $$ & 0xffff, time & 0xffff, nonce 2
144} 144}
145 145
146our $CONFIG; # this node's configuration 146our $CONFIG; # this node's configuration
147 147
148our $RUNIQ = alnumbits nonce 16;; # remote uniq value 148our $RUNIQ = alnumbits nonce 96/8; # remote uniq value
149our $UNIQ = gen_uniq; # per-process/node unique cookie 149our $UNIQ = gen_uniq; # per-process/node unique cookie
150our $NODE = "anon/$RUNIQ"; 150our $NODE = "anon/$RUNIQ";
151our $ID = "a"; 151our $ID = "a";
152 152
153our %NODE; # node id to transport mapping, or "undef", for local node 153our %NODE; # node id to transport mapping, or "undef", for local node

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines