Lines Matching refs:win32op
72 struct win32op { struct
104 grow_fd_sets(struct win32op *op, unsigned new_num_fds) in grow_fd_sets()
123 do_fd_set(struct win32op *op, struct idx_info *ent, evutil_socket_t s, int read) in do_fd_set()
149 struct win32op *op, struct idx_info *ent, int read) in do_fd_clear()
183 struct win32op *winop; in win32_init()
185 if (!(winop = mm_calloc(1, sizeof(struct win32op)))) in win32_init()
223 struct win32op *win32op = base->evbase; in win32_add() local
226 if ((events & EV_SIGNAL) && win32op->signals_are_broken) in win32_add()
234 if (do_fd_set(win32op, idx, fd, 1)<0) in win32_add()
238 if (do_fd_set(win32op, idx, fd, 0)<0) in win32_add()
248 struct win32op *win32op = base->evbase; in win32_del() local
254 do_fd_clear(base, win32op, idx, 1); in win32_del()
256 do_fd_clear(base, win32op, idx, 0); in win32_del()
282 struct win32op *win32op = base->evbase; in win32_dispatch() local
288 if (win32op->resize_out_sets) { in win32_dispatch()
289 size_t size = FD_SET_ALLOC_SIZE(win32op->num_fds_in_fd_sets); in win32_dispatch()
290 if (!(win32op->readset_out = mm_realloc(win32op->readset_out, size))) in win32_dispatch()
292 if (!(win32op->exset_out = mm_realloc(win32op->exset_out, size))) in win32_dispatch()
294 if (!(win32op->writeset_out = mm_realloc(win32op->writeset_out, size))) in win32_dispatch()
296 win32op->resize_out_sets = 0; in win32_dispatch()
299 fd_set_copy(win32op->readset_out, win32op->readset_in); in win32_dispatch()
300 fd_set_copy(win32op->exset_out, win32op->writeset_in); in win32_dispatch()
301 fd_set_copy(win32op->writeset_out, win32op->writeset_in); in win32_dispatch()
304 (win32op->readset_out->fd_count > win32op->writeset_out->fd_count) ? in win32_dispatch()
305 win32op->readset_out->fd_count : win32op->writeset_out->fd_count; in win32_dispatch()
320 (struct fd_set*)win32op->readset_out, in win32_dispatch()
321 (struct fd_set*)win32op->writeset_out, in win32_dispatch()
322 (struct fd_set*)win32op->exset_out, tv); in win32_dispatch()
332 if (win32op->readset_out->fd_count) { in win32_dispatch()
334 win32op->readset_out->fd_count); in win32_dispatch()
335 for (j=0; j<win32op->readset_out->fd_count; ++j) { in win32_dispatch()
336 if (++i >= win32op->readset_out->fd_count) in win32_dispatch()
338 s = win32op->readset_out->fd_array[i]; in win32_dispatch()
342 if (win32op->exset_out->fd_count) { in win32_dispatch()
344 win32op->exset_out->fd_count); in win32_dispatch()
345 for (j=0; j<win32op->exset_out->fd_count; ++j) { in win32_dispatch()
346 if (++i >= win32op->exset_out->fd_count) in win32_dispatch()
348 s = win32op->exset_out->fd_array[i]; in win32_dispatch()
352 if (win32op->writeset_out->fd_count) { in win32_dispatch()
355 win32op->writeset_out->fd_count); in win32_dispatch()
356 for (j=0; j<win32op->writeset_out->fd_count; ++j) { in win32_dispatch()
357 if (++i >= win32op->writeset_out->fd_count) in win32_dispatch()
359 s = win32op->writeset_out->fd_array[i]; in win32_dispatch()
369 struct win32op *win32op = base->evbase; in win32_dealloc() local
372 if (win32op->readset_in) in win32_dealloc()
373 mm_free(win32op->readset_in); in win32_dealloc()
374 if (win32op->writeset_in) in win32_dealloc()
375 mm_free(win32op->writeset_in); in win32_dealloc()
376 if (win32op->readset_out) in win32_dealloc()
377 mm_free(win32op->readset_out); in win32_dealloc()
378 if (win32op->writeset_out) in win32_dealloc()
379 mm_free(win32op->writeset_out); in win32_dealloc()
380 if (win32op->exset_out) in win32_dealloc()
381 mm_free(win32op->exset_out); in win32_dealloc()
384 memset(win32op, 0, sizeof(*win32op)); in win32_dealloc()
385 mm_free(win32op); in win32_dealloc()