src/server/daemon/event_linux.c

branch
aio
changeset 187
4384bfbb7e26
parent 185
b4d7ccf4e06d
child 192
6a145e13d933
--- a/src/server/daemon/event_linux.c	Wed Jan 10 17:25:55 2018 +0100
+++ b/src/server/daemon/event_linux.c	Wed Jan 10 18:47:37 2018 +0100
@@ -177,7 +177,7 @@
     return epoll_ctl(h->ep, EPOLL_CTL_DEL, fd, NULL);
 }
 
-int evt_send(EventHandler *h, Event *event) {
+int event_send(EventHandler *h, Event *event) {
     event->object = 0;
     event->events = 0;
     ssize_t r = write(h->eventfd, &event, sizeof(Event*));
@@ -191,7 +191,7 @@
     if(result < 0) {
         cb->result_errno = errno;
     }
-    return evt_send(cb->evhandler, cb->event);
+    return event_send(cb->evhandler, cb->event);
 }
 
 int ev_aiowrite(int fd, aiocb_s *cb) {
@@ -200,7 +200,7 @@
     if(result < 0) {
         cb->result_errno = errno;
     }
-    return evt_send(cb->evhandler, cb->event);
+    return event_send(cb->evhandler, cb->event);
 }
 
 

mercurial