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

Function aeApiResize

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

Source from the content-addressed store, hash-verified

85}
86
87static int aeApiResize(aeEventLoop *eventLoop, int setsize) {
88 aeApiState *state = eventLoop->apidata;
89
90 state->events = zrealloc(state->events, sizeof(struct kevent)*setsize);
91 state->eventsMask = zrealloc(state->eventsMask, EVENT_MASK_MALLOC_SIZE(setsize));
92 memset(state->eventsMask, 0, EVENT_MASK_MALLOC_SIZE(setsize));
93 return 0;
94}
95
96static void aeApiFree(aeEventLoop *eventLoop) {
97 aeApiState *state = eventLoop->apidata;

Callers

nothing calls this directly

Calls 2

zreallocFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected