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

Comparing libev/ev_select.c (file contents):
Revision 1.40 by root, Tue Jan 6 19:46:56 2009 UTC vs.
Revision 1.41 by root, Wed Jan 7 17:54:57 2009 UTC

70 if (oev == nev) 70 if (oev == nev)
71 return; 71 return;
72 72
73 { 73 {
74#if EV_SELECT_USE_FD_SET 74#if EV_SELECT_USE_FD_SET
75 assert (("libev: fd >= FD_SETSIZE passed to fd_set-based select backend", fd < FD_SETSIZE));
76
77 #if EV_SELECT_IS_WINSOCKET 75 #if EV_SELECT_IS_WINSOCKET
78 SOCKET handle = anfds [fd].handle; 76 SOCKET handle = anfds [fd].handle;
79 #else 77 #else
80 int handle = fd; 78 int handle = fd;
81 #endif 79 #endif
80
81 assert (("libev: fd >= FD_SETSIZE passed to fd_set-based select backend", fd < FD_SETSIZE));
82 82
83 /* FD_SET is broken on windows (it adds the fd to a set twice or more, 83 /* FD_SET is broken on windows (it adds the fd to a set twice or more,
84 * which eventually leads to overflows). Need to call it only on changes. 84 * which eventually leads to overflows). Need to call it only on changes.
85 */ 85 */
86 #if EV_SELECT_IS_WINSOCKET 86 #if EV_SELECT_IS_WINSOCKET

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines