| 91 | } |
| 92 | |
| 93 | int Loop::poll(struct pollfd* fds, nfds_t nfds, Duration timeout) { |
| 94 | struct timespec spec = timeout.timespec(); |
| 95 | return ppoll(fds, nfds, timeout < 0 ? nullptr : &spec, &blockingSigset); |
| 96 | } |
| 97 | |
| 98 | int Loop::epollWait(int epfd, struct epoll_event* events, int maxevents, Duration timeout) { |
| 99 | return epoll_pwait(epfd, events, maxevents, static_cast<int>(timeout.ns / 1000000), &blockingSigset); |
no test coverage detected