ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/iom.C
(Generate patch)

Comparing gvpe/src/iom.C (file contents):
Revision 1.26 by pcg, Wed Dec 15 02:59:54 2004 UTC vs.
Revision 1.27 by pcg, Sun Dec 19 18:44:33 2004 UTC

414 for (int i = iow.size (); i--; ) 414 for (int i = iow.size (); i--; )
415 if (!iow[i]) 415 if (!iow[i])
416 iow.erase_unordered (i); 416 iow.erase_unordered (i);
417 else 417 else
418 { 418 {
419 io_watcher &w = *iow[i];
419 short revents = iow[i]->events; 420 short revents = w.events;
420 421
421 if (!FD_ISSET (iow[i]->fd, &rfd)) revents &= ~EVENT_READ; 422 if (!FD_ISSET (w.fd, &rfd)) revents &= ~EVENT_READ;
422 if (!FD_ISSET (iow[i]->fd, &wfd)) revents &= ~EVENT_WRITE; 423 if (!FD_ISSET (w.fd, &wfd)) revents &= ~EVENT_WRITE;
423 424
424 if (revents) 425 if (revents)
425 iow[i]->call (*iow[i], revents); 426 w.call (w, revents);
426 } 427 }
427#endif 428#endif
428 } 429 }
429 else if (fds < 0 && errno != EINTR) 430 else if (fds < 0 && errno != EINTR)
430 { 431 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines