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

Comparing deliantra/server/ext/player-scheduler.ext (file contents):
Revision 1.6 by root, Thu Apr 29 07:52:02 2010 UTC vs.
Revision 1.7 by root, Sat Aug 13 20:20:30 2011 UTC

7 7
8our $SCHEDULER = cf::async_ext { 8our $SCHEDULER = cf::async_ext {
9 $Coro::current->{desc} = "player scheduler"; 9 $Coro::current->{desc} = "player scheduler";
10 10
11 while () { 11 while () {
12 Coro::EV::timer_once $SCHEDULE_INTERVAL; 12 Coro::AnyEvent::sleep $SCHEDULE_INTERVAL;
13 13
14 # this weird form of iteration over values is used because 14 # this weird form of iteration over values is used because
15 # the hash changes underneath us frequently, and for 15 # the hash changes underneath us frequently, and for
16 # keeps a direct reference to the value without (in 5.8 perls) 16 # keeps a direct reference to the value without (in 5.8 perls)
17 # keeping a reference, so this is prone to crashes or worse. 17 # keeping a reference, so this is prone to crashes or worse.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines