]> git.saurik.com Git - redis.git/blobdiff - ae.c
VM now swaps objects out while loading datasets not fitting into vm-max-memory bytes...
[redis.git] / ae.c
diff --git a/ae.c b/ae.c
index 4f12e4109e8e11f8cb70ac3203c802bfbc9a7a3a..81fd9add8f15fa63b4e4ed669967b193ca523f74 100644 (file)
--- a/ae.c
+++ b/ae.c
 #ifdef HAVE_EPOLL
 #include "ae_epoll.c"
 #else
-#include "ae_select.c"
+    #ifdef HAVE_KQUEUE
+    #include "ae_kqueue.c"
+    #else
+    #include "ae_select.c"
+    #endif
 #endif
 
 aeEventLoop *aeCreateEventLoop(void) {
@@ -369,9 +373,12 @@ int aeWait(int fd, int mask, long long milliseconds) {
     }
 }
 
-void aeMain(aeEventLoop *eventLoop)
-{
+void aeMain(aeEventLoop *eventLoop) {
     eventLoop->stop = 0;
     while (!eventLoop->stop)
         aeProcessEvents(eventLoop, AE_ALL_EVENTS);
 }
+
+char *aeGetApiName(void) {
+    return aeApiName();
+}