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

Comparing deliantra/server/server/evthread.C (file contents):
Revision 1.4 by root, Sun Apr 6 16:13:23 2008 UTC vs.
Revision 1.7 by root, Thu Nov 20 12:18:07 2008 UTC

83static EV_ATOMIC_T aio_pending; 83static EV_ATOMIC_T aio_pending;
84 84
85static void 85static void
86aio2_cb (EV_P_ ev_idle *w, int revents) 86aio2_cb (EV_P_ ev_idle *w, int revents)
87{ 87{
88 IV reqs;
89
88 CALL_BEGIN (0); 90 CALL_BEGIN (0);
89 CALL_CALL ("IO::AIO::poll_cb", G_SCALAR); 91 CALL_CALL ("IO::AIO::poll_cb", G_SCALAR);
90 92
93 reqs = POPi;
91 if (count > 0 && TOPi > 0) 94 if (count > 0 && reqs < 0)
92 ev_idle_start (EV_A, w); 95 ev_idle_start (EV_A, w);
93 else 96 else
94 ev_idle_stop (EV_A, w); 97 ev_idle_stop (EV_A, w);
95 98
96 CALL_END; 99 CALL_END;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines