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

Comparing libev/ev_poll.c (file contents):
Revision 1.39 by root, Sat Jun 4 05:33:29 2011 UTC vs.
Revision 1.40 by root, Thu Feb 18 04:48:05 2016 UTC

37 * either the BSD or the GPL. 37 * either the BSD or the GPL.
38 */ 38 */
39 39
40#include <poll.h> 40#include <poll.h>
41 41
42void inline_size 42inline_size
43void
43pollidx_init (int *base, int count) 44pollidx_init (int *base, int count)
44{ 45{
45 /* consider using memset (.., -1, ...), which is practically guaranteed 46 /* consider using memset (.., -1, ...), which is practically guaranteed
46 * to work on all systems implementing poll */ 47 * to work on all systems implementing poll */
47 while (count--) 48 while (count--)
124 ); 125 );
125 } 126 }
126 } 127 }
127} 128}
128 129
129int inline_size 130inline_size
131int
130poll_init (EV_P_ int flags) 132poll_init (EV_P_ int flags)
131{ 133{
132 backend_mintime = 1e-3; 134 backend_mintime = 1e-3;
133 backend_modify = poll_modify; 135 backend_modify = poll_modify;
134 backend_poll = poll_poll; 136 backend_poll = poll_poll;
137 polls = 0; pollmax = 0; pollcnt = 0; 139 polls = 0; pollmax = 0; pollcnt = 0;
138 140
139 return EVBACKEND_POLL; 141 return EVBACKEND_POLL;
140} 142}
141 143
142void inline_size 144inline_size
145void
143poll_destroy (EV_P) 146poll_destroy (EV_P)
144{ 147{
145 ev_free (pollidxs); 148 ev_free (pollidxs);
146 ev_free (polls); 149 ev_free (polls);
147} 150}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines