| 816 | } |
| 817 | |
| 818 | void aeMain(aeEventLoop *eventLoop) { |
| 819 | eventLoop->stop = 0; |
| 820 | g_eventLoopThisThread = eventLoop; |
| 821 | while (!eventLoop->stop) { |
| 822 | serverAssert(!aeThreadOwnsLock()); // we should have relinquished it after processing |
| 823 | aeProcessEvents(eventLoop, AE_ALL_EVENTS|AE_CALL_BEFORE_SLEEP|AE_CALL_AFTER_SLEEP); |
| 824 | serverAssert(!aeThreadOwnsLock()); // we should have relinquished it after processing |
| 825 | } |
| 826 | } |
| 827 | |
| 828 | const char *aeGetApiName(void) { |
| 829 | return aeApiName(); |
no test coverage detected