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

Function aeApiAddEvent

src/ae_select.c:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static int aeApiAddEvent(aeEventLoop *eventLoop, int fd, int mask) {
63 aeApiState *state = eventLoop->apidata;
64
65 if (mask & AE_READABLE) FD_SET(fd,&state->rfds);
66 if (mask & AE_WRITABLE) FD_SET(fd,&state->wfds);
67 return 0;
68}
69
70static void aeApiDelEvent(aeEventLoop *eventLoop, int fd, int mask) {
71 aeApiState *state = eventLoop->apidata;

Callers 1

aeCreateFileEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected