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

Function aeApiDelEvent

src/ae_kqueue.c:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117static void aeApiDelEvent(aeEventLoop *eventLoop, int fd, int mask) {
118 aeApiState *state = (aeApiState*)eventLoop->apidata;
119 struct kevent ke;
120
121 if (mask & AE_READABLE) {
122 EV_SET(&ke, fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
123 kevent(state->kqfd, &ke, 1, NULL, 0, NULL);
124 }
125 if (mask & AE_WRITABLE) {
126 EV_SET(&ke, fd, EVFILT_WRITE, EV_DELETE, 0, 0, NULL);
127 kevent(state->kqfd, &ke, 1, NULL, 0, NULL);
128 }
129}
130
131static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) {
132 aeApiState *state = (aeApiState*)eventLoop->apidata;

Callers

nothing calls this directly

Calls 1

keventClass · 0.70

Tested by

no test coverage detected