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

Comparing deliantra/server/ext/map-scheduler.ext (file contents):
Revision 1.43 by root, Wed Sep 19 21:57:26 2007 UTC vs.
Revision 1.44 by root, Mon Oct 1 00:55:51 2007 UTC

52 } 52 }
53}; 53};
54 54
55our $SCHEDULER = cf::async_ext { 55our $SCHEDULER = cf::async_ext {
56 $Coro::current->{desc} = "map scheduler"; 56 $Coro::current->{desc} = "map scheduler";
57 $Coro::current->prio (Coro::PRIO_MAX);
57 my $timer = Coro::Event->timer (after => 1); 58 my $timer = Coro::Event->timer (after => 1, data => cf::WF_AUTOCANCEL);
58 59
59 while () { 60 while () {
60 $timer->interval ($SCHEDULE_INTERVAL); 61 $timer->interval ($SCHEDULE_INTERVAL);
61 $timer->next unless $cf::LOADAVG > $SWAP_LOAD2; 62 $timer->next unless $cf::LOADAVG > $SWAP_LOAD2;
62 63

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines