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

Comparing libev/ev.c (file contents):
Revision 1.120 by root, Fri Nov 16 01:54:25 2007 UTC vs.
Revision 1.122 by root, Sat Nov 17 02:00:48 2007 UTC

94#endif 94#endif
95 95
96/**/ 96/**/
97 97
98#ifndef EV_USE_MONOTONIC 98#ifndef EV_USE_MONOTONIC
99# define EV_USE_MONOTONIC 1 99# define EV_USE_MONOTONIC 0
100#endif 100#endif
101 101
102#ifndef EV_USE_REALTIME 102#ifndef EV_USE_REALTIME
103# define EV_USE_REALTIME 1 103# define EV_USE_REALTIME 0
104#endif 104#endif
105 105
106#ifndef EV_USE_SELECT 106#ifndef EV_USE_SELECT
107# define EV_USE_SELECT 1 107# define EV_USE_SELECT 1
108# define EV_SELECT_USE_FD_SET 1
109#endif 108#endif
110 109
111#ifndef EV_USE_POLL 110#ifndef EV_USE_POLL
112# ifdef _WIN32 111# ifdef _WIN32
113# define EV_USE_POLL 0 112# define EV_USE_POLL 0
995 return 1; 994 return 1;
996 995
997 return 0; 996 return 0;
998} 997}
999 998
1000static void 999inline void
1001call_pending (EV_P) 1000call_pending (EV_P)
1002{ 1001{
1003 int pri; 1002 int pri;
1004 1003
1005 for (pri = NUMPRI; pri--; ) 1004 for (pri = NUMPRI; pri--; )
1006 while (pendingcnt [pri]) 1005 while (pendingcnt [pri])
1007 { 1006 {
1008 ANPENDING *p = pendings [pri] + --pendingcnt [pri]; 1007 ANPENDING *p = pendings [pri] + --pendingcnt [pri];
1009 1008
1010 if (p->w) 1009 if (expect_true (p->w))
1011 { 1010 {
1012 p->w->pending = 0; 1011 p->w->pending = 0;
1013 EV_CB_INVOKE (p->w, p->events); 1012 EV_CB_INVOKE (p->w, p->events);
1014 } 1013 }
1015 } 1014 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines