Don't block in epoll_wait() / kevent() / etc. syscall unless there are active handles. If there are only active requests, do a non-blocking poll. Likewise, don't run the prepare and check watchers unless there are active handles *or* requests. |
||
|---|---|---|
| .. | ||
| ares | ||
| unix | ||
| win | ||
| uv-common.c | ||
| uv-common.h | ||