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.134 by root, Fri Sep 18 21:28:33 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)
392 const_iv (EV, FLAG_NOENV) 394 const_iv (EV, FLAG_NOENV)
393 const_iv (EV, FLAG_FORKCHECK) 395 const_iv (EV, FLAG_NOSIGFD)
396 const_iv (EV, FLAG_NOINOTIFY)
394 397
395 const_iv (EV_, VERSION_MAJOR) 398 const_iv (EV_, VERSION_MAJOR)
396 const_iv (EV_, VERSION_MINOR) 399 const_iv (EV_, VERSION_MINOR)
397 }; 400 };
398 401
578 C_ARGS: evapi.default_loop 581 C_ARGS: evapi.default_loop
579 582
580ev_io *io (SV *fh, int events, SV *cb) 583ev_io *io (SV *fh, int events, SV *cb)
581 ALIAS: 584 ALIAS:
582 io_ns = 1 585 io_ns = 1
586 _ae_io = 2
583 CODE: 587 CODE:
584{ 588{
585 int fd = s_fileno (fh, events & EV_WRITE); 589 int fd = s_fileno (fh, events & EV_WRITE);
586 CHECK_FD (fh, fd); 590 CHECK_FD (fh, fd);
591
592 if (ix == 2)
593 {
594 ix = 0;
595 events = events ? EV_WRITE : EV_READ;
596 }
587 597
588 RETVAL = e_new (sizeof (ev_io), cb, default_loop_sv); 598 RETVAL = e_new (sizeof (ev_io), cb, default_loop_sv);
589 RETVAL->fh = newSVsv (fh); 599 RETVAL->fh = newSVsv (fh);
590 ev_io_set (RETVAL, fd, events); 600 ev_io_set (RETVAL, fd, events);
591 if (!ix) START (io, RETVAL); 601 if (!ix) START (io, RETVAL);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines