ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/follow.ext
(Generate patch)

Comparing deliantra/server/ext/follow.ext (file contents):
Revision 1.13 by root, Thu Oct 11 00:34:31 2007 UTC vs.
Revision 1.14 by root, Fri Jul 11 21:41:38 2008 UTC

8 8
9our %follow; 9our %follow;
10 10
11our $CORO = cf::async { 11our $CORO = cf::async {
12 $Coro::current->{desc} = "follow handler"; 12 $Coro::current->{desc} = "follow handler";
13
14 while () { eval {#d#
13 15
14 while () { 16 while () {
15 cf::wait_for_tick; 17 cf::wait_for_tick;
16 18
17 while (my ($name, $v) = each %follow) { 19 while (my ($name, $v) = each %follow) {
46 } 48 }
47 } 49 }
48 50
49 Coro::schedule unless keys %follow; 51 Coro::schedule unless keys %follow;
50 } 52 }
53 }; warn "follow handler died <$@>\n"; }#d#
51}; 54};
52 55
53cf::register_command follow => sub { 56cf::register_command follow => sub {
54 my ($who, $args) = @_; 57 my ($who, $args) = @_;
55 58

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines