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

Comparing libev/ev.c (file contents):
Revision 1.43 by root, Fri Nov 2 20:21:33 2007 UTC vs.
Revision 1.44 by root, Fri Nov 2 20:59:14 2007 UTC

64 64
65#ifndef EV_USE_EPOLL 65#ifndef EV_USE_EPOLL
66# define EV_USE_EPOLL 0 66# define EV_USE_EPOLL 0
67#endif 67#endif
68 68
69#ifndef EV_USE_KQUEUE
70# define EV_USE_KQUEUE 0
71#endif
72
69#ifndef EV_USE_REALTIME 73#ifndef EV_USE_REALTIME
70# define EV_USE_REALTIME 1 74# define EV_USE_REALTIME 1
71#endif 75#endif
72 76
73/**/ 77/**/
482 } 486 }
483} 487}
484 488
485/*****************************************************************************/ 489/*****************************************************************************/
486 490
491#if EV_USE_KQUEUE
492# include "ev_kqueue.c"
493#endif
487#if EV_USE_EPOLL 494#if EV_USE_EPOLL
488# include "ev_epoll.c" 495# include "ev_epoll.c"
489#endif 496#endif
490#if EV_USE_POLL 497#if EV_USE_POLL
491# include "ev_poll.c" 498# include "ev_poll.c"
539 methods = atoi (getenv ("LIBEV_METHODS")); 546 methods = atoi (getenv ("LIBEV_METHODS"));
540 else 547 else
541 methods = EVMETHOD_ANY; 548 methods = EVMETHOD_ANY;
542 549
543 ev_method = 0; 550 ev_method = 0;
551#if EV_USE_KQUEUE
552 if (!ev_method && (methods & EVMETHOD_KQUEUE)) kqueue_init (methods);
553#endif
544#if EV_USE_EPOLL 554#if EV_USE_EPOLL
545 if (!ev_method && (methods & EVMETHOD_EPOLL )) epoll_init (methods); 555 if (!ev_method && (methods & EVMETHOD_EPOLL )) epoll_init (methods);
546#endif 556#endif
547#if EV_USE_POLL 557#if EV_USE_POLL
548 if (!ev_method && (methods & EVMETHOD_POLL )) poll_init (methods); 558 if (!ev_method && (methods & EVMETHOD_POLL )) poll_init (methods);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines