MCPcopy Create free account
hub / github.com/F-Stack/f-stack / aeApiDelEvent

Function aeApiDelEvent

app/redis-6.2.6/src/ae_ff_kqueue.c:120–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ff_keventFunction · 0.85

Tested by

no test coverage detected