MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / aeMain

Function aeMain

src/ae.cpp:818–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818void 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
828const char *aeGetApiName(void) {
829 return aeApiName();

Callers 6

execBenchmarkThreadFunction · 0.85
benchmarkFunction · 0.85
execBenchmarkThreadFunction · 0.85
mainFunction · 0.85
workerThreadMainFunction · 0.85
mainFunction · 0.85

Calls 2

aeThreadOwnsLockFunction · 0.85
aeProcessEventsFunction · 0.85

Tested by

no test coverage detected