| 141 | } |
| 142 | |
| 143 | void aeDeleteEventLoop(aeEventLoop *eventLoop) { |
| 144 | aeApiFree(eventLoop); |
| 145 | zfree(eventLoop->events); |
| 146 | zfree(eventLoop->fired); |
| 147 | |
| 148 | /* Free the time events list. */ |
| 149 | aeTimeEvent *next_te, *te = eventLoop->timeEventHead; |
| 150 | while (te) { |
| 151 | next_te = te->next; |
| 152 | zfree(te); |
| 153 | te = next_te; |
| 154 | } |
| 155 | zfree(eventLoop); |
| 156 | } |
| 157 | |
| 158 | void aeStop(aeEventLoop *eventLoop) { |
| 159 | eventLoop->stop = 1; |
no test coverage detected