}
}
-/* notify libev that an fd was closed. required on windows when a closed */
-/* fd may be reused during before backend_modify is called again */
-void noinline
-ev_fd_closed(EV_P_ int fd)
-{
-#ifdef _WIN32
- if (fd < anfdmax) {
- ANFD *anfd = anfds + fd;
-
- backend_modify (EV_A_ fd, anfd->events, 0);
- anfd->events = 0;
-
- fd_change (EV_A_ fd, EV__IOFDSET | EV_ANFD_REIFY);
- }
-#endif
-}
-
/* check whether the given fd is actually valid, for error recovery */
inline_size int
fd_valid (int fd)
void ev_io_start (EV_P_ ev_io *w);
void ev_io_stop (EV_P_ ev_io *w);
-/* notify libev that an fd was closed. required on windows when a closed */
-/* fd may be reused during before backend_modify is called again */
-void ev_fd_closed(EV_P_ int fd);
-
void ev_timer_start (EV_P_ ev_timer *w);
void ev_timer_stop (EV_P_ ev_timer *w);
/* stops if active and no repeat, restarts if active and repeating, starts if inactive and repeating */
return ThrowException(ErrnoException(errno, "close"));
}
-#ifdef __MINGW32__
- ev_fd_closed(EV_DEFAULT_UC_ fd);
-#endif
-
return Undefined();
}