ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.xs
(Generate patch)

Comparing EV/EV.xs (file contents):
Revision 1.132 by root, Sun Jul 19 21:59:55 2009 UTC vs.
Revision 1.135 by root, Thu Dec 31 06:59:47 2009 UTC

386 const_iv (EV, BACKEND_POLL) 386 const_iv (EV, BACKEND_POLL)
387 const_iv (EV, BACKEND_EPOLL) 387 const_iv (EV, BACKEND_EPOLL)
388 const_iv (EV, BACKEND_KQUEUE) 388 const_iv (EV, BACKEND_KQUEUE)
389 const_iv (EV, BACKEND_DEVPOLL) 389 const_iv (EV, BACKEND_DEVPOLL)
390 const_iv (EV, BACKEND_PORT) 390 const_iv (EV, BACKEND_PORT)
391 const_iv (EV, BACKEND_ALL)
391 const_iv (EV, FLAG_AUTO) 392 const_iv (EV, FLAG_AUTO)
393 const_iv (EV, FLAG_FORKCHECK)
394 const_iv (EV, FLAG_SIGNALFD)
392 const_iv (EV, FLAG_NOENV) 395 const_iv (EV, FLAG_NOENV)
396 const_iv (EV, FLAG_NOSIGFD) /* compatibility, always 0 */
393 const_iv (EV, FLAG_FORKCHECK) 397 const_iv (EV, FLAG_NOINOTIFY)
394 398
395 const_iv (EV_, VERSION_MAJOR) 399 const_iv (EV_, VERSION_MAJOR)
396 const_iv (EV_, VERSION_MINOR) 400 const_iv (EV_, VERSION_MINOR)
397 }; 401 };
398 402
578 C_ARGS: evapi.default_loop 582 C_ARGS: evapi.default_loop
579 583
580ev_io *io (SV *fh, int events, SV *cb) 584ev_io *io (SV *fh, int events, SV *cb)
581 ALIAS: 585 ALIAS:
582 io_ns = 1 586 io_ns = 1
587 _ae_io = 2
583 CODE: 588 CODE:
584{ 589{
585 int fd = s_fileno (fh, events & EV_WRITE); 590 int fd = s_fileno (fh, events & EV_WRITE);
586 CHECK_FD (fh, fd); 591 CHECK_FD (fh, fd);
592
593 if (ix == 2)
594 {
595 ix = 0;
596 events = events ? EV_WRITE : EV_READ;
597 }
587 598
588 RETVAL = e_new (sizeof (ev_io), cb, default_loop_sv); 599 RETVAL = e_new (sizeof (ev_io), cb, default_loop_sv);
589 RETVAL->fh = newSVsv (fh); 600 RETVAL->fh = newSVsv (fh);
590 ev_io_set (RETVAL, fd, events); 601 ev_io_set (RETVAL, fd, events);
591 if (!ix) START (io, RETVAL); 602 if (!ix) START (io, RETVAL);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines