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

Comparing libev/ev.c (file contents):
Revision 1.123 by root, Sat Nov 17 02:23:54 2007 UTC vs.
Revision 1.126 by root, Sun Nov 18 01:25:23 2007 UTC

41# define EV_USE_MONOTONIC 1 41# define EV_USE_MONOTONIC 1
42# endif 42# endif
43# ifndef EV_USE_REALTIME 43# ifndef EV_USE_REALTIME
44# define EV_USE_REALTIME 1 44# define EV_USE_REALTIME 1
45# endif 45# endif
46# else
47# ifndef EV_USE_MONOTONIC
48# define EV_USE_MONOTONIC 0
49# endif
50# ifndef EV_USE_REALTIME
51# define EV_USE_REALTIME 0
52# endif
46# endif 53# endif
47 54
48# if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT) 55# if HAVE_SELECT && HAVE_SYS_SELECT_H && !defined (EV_USE_SELECT)
49# define EV_USE_SELECT 1 56# define EV_USE_SELECT 1
57# else
58# define EV_USE_SELECT 0
50# endif 59# endif
51 60
52# if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) 61# if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL)
53# define EV_USE_POLL 1 62# define EV_USE_POLL 1
63# else
64# define EV_USE_POLL 0
54# endif 65# endif
55 66
56# if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) 67# if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL)
57# define EV_USE_EPOLL 1 68# define EV_USE_EPOLL 1
69# else
70# define EV_USE_EPOLL 0
58# endif 71# endif
59 72
60# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) 73# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE)
61# define EV_USE_KQUEUE 1 74# define EV_USE_KQUEUE 1
75# else
76# define EV_USE_KQUEUE 0
62# endif 77# endif
63 78
64# if HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT) 79# if HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT)
65# define EV_USE_PORT 1 80# define EV_USE_PORT 1
81# else
82# define EV_USE_PORT 0
66# endif 83# endif
67 84
68#endif 85#endif
69 86
70#include <math.h> 87#include <math.h>
809 ev_init (&sigev, sigcb); 826 ev_init (&sigev, sigcb);
810 ev_set_priority (&sigev, EV_MAXPRI); 827 ev_set_priority (&sigev, EV_MAXPRI);
811 } 828 }
812} 829}
813 830
814void 831static void
815loop_destroy (EV_P) 832loop_destroy (EV_P)
816{ 833{
817 int i; 834 int i;
818 835
819#if EV_USE_PORT 836#if EV_USE_PORT
910 927
911#endif 928#endif
912 929
913#if EV_MULTIPLICITY 930#if EV_MULTIPLICITY
914struct ev_loop * 931struct ev_loop *
915ev_default_loop_ (unsigned int flags) 932ev_default_loop_init (unsigned int flags)
916#else 933#else
917int 934int
918ev_default_loop (unsigned int flags) 935ev_default_loop (unsigned int flags)
919#endif 936#endif
920{ 937{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines