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.7 by root, Thu Nov 20 12:18:07 2008 UTC vs.
Revision 1.8 by root, Thu Jul 16 21:42:56 2009 UTC

106} 106}
107 107
108static void 108static void
109aio1_cb (EV_P_ ev_io *w, int revents) 109aio1_cb (EV_P_ ev_io *w, int revents)
110{ 110{
111 char dummy; 111 char dummy[9];
112 112
113 if (read (w->fd, &dummy, 1) > 0) 113 if (read (w->fd, dummy, sizeof (dummy)) > 0)
114 { 114 {
115 ev_async_send (EV_DEFAULT_UC, &async_watcher); 115 ev_async_send (EV_DEFAULT_UC, &async_watcher);
116 coroapi::cede_pending = 1; 116 coroapi::cede_pending = 1;
117 } 117 }
118} 118}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines