| 64 | } |
| 65 | |
| 66 | bool PollerHasEvent(Poller* poller, PollEvent event, int fd) |
| 67 | { |
| 68 | for (uint32_t i = 0; i < poller->m_Pollfds.Size(); ++i) |
| 69 | { |
| 70 | if (poller->m_Pollfds[i].fd == fd) |
| 71 | { |
| 72 | int e = PollReturnEventToNative(event); |
| 73 | return poller->m_Pollfds[i].revents & e; |
| 74 | } |
| 75 | } |
| 76 | return false; |
| 77 | } |
| 78 | |
| 79 | void PollerReset(Poller* poller) |
| 80 | { |
no test coverage detected