ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.239 by root, Mon Apr 16 06:23:42 2007 UTC vs.
Revision 1.240 by root, Mon Apr 16 10:14:25 2007 UTC

2646 2646
2647our @WAIT_FOR_TICK; 2647our @WAIT_FOR_TICK;
2648our @WAIT_FOR_TICK_BEGIN; 2648our @WAIT_FOR_TICK_BEGIN;
2649 2649
2650sub wait_for_tick { 2650sub wait_for_tick {
2651 return unless $TICK_WATCHER->is_active;
2651 my $signal = new Coro::Signal; 2652 my $signal = new Coro::Signal;
2652 push @WAIT_FOR_TICK, $signal; 2653 push @WAIT_FOR_TICK, $signal;
2653 $signal->wait; 2654 $signal->wait;
2654} 2655}
2655 2656
2656sub wait_for_tick_begin { 2657sub wait_for_tick_begin {
2658 return unless $TICK_WATCHER->is_active;
2657 my $signal = new Coro::Signal; 2659 my $signal = new Coro::Signal;
2658 push @WAIT_FOR_TICK_BEGIN, $signal; 2660 push @WAIT_FOR_TICK_BEGIN, $signal;
2659 $signal->wait; 2661 $signal->wait;
2660} 2662}
2661 2663

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines