… | |
… | |
24 | #include "cfperl.h" |
24 | #include "cfperl.h" |
25 | |
25 | |
26 | thread evthread; |
26 | thread evthread; |
27 | static ev_loop *loop; |
27 | static ev_loop *loop; |
28 | |
28 | |
29 | #define TICK_CYCLES 5 |
29 | #define TICK_CYCLES 4 |
30 | |
30 | |
31 | // the ticker runs TICK_CYCLES times as fast as the main server tick |
31 | // the ticker runs TICK_CYCLES times as fast as the main server tick |
32 | static ev_periodic cede_watcher; |
32 | static ev_periodic cede_watcher; |
33 | // the tick watcher is activated every TICK_CYCLES |
33 | // the tick watcher is activated every TICK_CYCLES |
34 | ev_async tick_watcher; |
34 | ev_async tick_watcher; |