| 28 | } |
| 29 | |
| 30 | void PollerClearEvent(Poller* poller, PollEvent event, int fd) |
| 31 | { |
| 32 | for (uint32_t i = 0; i < poller->m_Pollfds.Size(); ++i) |
| 33 | { |
| 34 | if (poller->m_Pollfds[i].fd == fd) |
| 35 | { |
| 36 | int e = PollEventToNative(event); |
| 37 | poller->m_Pollfds[i].events &= ~e; |
| 38 | return; |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | void PollerSetEvent(Poller* poller, PollEvent event, int fd) |
| 44 | { |
no test coverage detected