MCPcopy Create free account
hub / github.com/XTXMarkets/ternfs / poll

Method poll

cpp/core/Loop.cpp:93–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93int 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
98int 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);

Callers 1

terminate_all_processesFunction · 0.80

Calls 1

timespecMethod · 0.80

Tested by

no test coverage detected