… | |
… | |
99 | { |
99 | { |
100 | method_fudge = 1e-3; /* needed to compensate for select returning early, very conservative */ |
100 | method_fudge = 1e-3; /* needed to compensate for select returning early, very conservative */ |
101 | method_modify = poll_modify; |
101 | method_modify = poll_modify; |
102 | method_poll = poll_poll; |
102 | method_poll = poll_poll; |
103 | |
103 | |
|
|
104 | pollidxs = 0; pollidxmax = 0; |
|
|
105 | polls = 0; pollsmax = 0; pollscnt = 0; |
|
|
106 | |
104 | return EVMETHOD_POLL; |
107 | return EVMETHOD_POLL; |
105 | } |
108 | } |
|
|
109 | |
|
|
110 | static void |
|
|
111 | poll_destroy (EV_P) |
|
|
112 | { |
|
|
113 | free (pollidxs); |
|
|
114 | free (polls); |
|
|
115 | } |