ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_iouring.c
(Generate patch)

Comparing libev/ev_iouring.c (file contents):
Revision 1.4 by root, Wed Aug 28 10:05:23 2019 UTC vs.
Revision 1.5 by root, Tue Nov 19 13:09:00 2019 UTC

361/*****************************************************************************/ 361/*****************************************************************************/
362 362
363static void 363static void
364iouring_modify (EV_P_ int fd, int oev, int nev) 364iouring_modify (EV_P_ int fd, int oev, int nev)
365{ 365{
366 fprintf (stderr,"modify %d (%d, %d) %d\n", fd, oev,nev, anfds[fd].eflags);//D
367 if (ecb_expect_false (anfds [fd].eflags)) 366 if (ecb_expect_false (anfds [fd].eflags))
368 { 367 {
369 /* we handed this fd over to epoll, so undo this first */ 368 /* we handed this fd over to epoll, so undo this first */
370 /* we do it manually because the optimisations on epoll_modify won't do us any good */ 369 /* we do it manually because the optimisations on epoll_modify won't do us any good */
371 epoll_ctl (iouring_fd, EPOLL_CTL_DEL, fd, 0); 370 epoll_ctl (iouring_fd, EPOLL_CTL_DEL, fd, 0);
471 } 470 }
472 471
473 return; 472 return;
474 } 473 }
475 474
476 fprintf (stderr, "fd %d event, rearm\n", fd);//D
477
478 /* feed events, we do not expect or handle POLLNVAL */ 475 /* feed events, we do not expect or handle POLLNVAL */
479 fd_event ( 476 fd_event (
480 EV_A_ 477 EV_A_
481 fd, 478 fd,
482 (res & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0) 479 (res & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines