| 94 | } |
| 95 | |
| 96 | static void aeApiFree(aeEventLoop *eventLoop) { |
| 97 | aeApiState *state = eventLoop->apidata; |
| 98 | |
| 99 | close(state->kqfd); |
| 100 | zfree(state->events); |
| 101 | zfree(state->eventsMask); |
| 102 | zfree(state); |
| 103 | } |
| 104 | |
| 105 | static int aeApiAddEvent(aeEventLoop *eventLoop, int fd, int mask) { |
| 106 | aeApiState *state = eventLoop->apidata; |