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

Function __redisShiftCallback

deps/hiredis/async.c:267–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267static int __redisShiftCallback(redisCallbackList *list, redisCallback *target) {
268 redisCallback *cb = list->head;
269 if (cb != NULL) {
270 list->head = cb->next;
271 if (cb == list->tail)
272 list->tail = NULL;
273
274 /* Copy callback from heap to stack */
275 if (target != NULL)
276 memcpy(target,cb,sizeof(*cb));
277 hi_free(cb);
278 return REDIS_OK;
279 }
280 return REDIS_ERR;
281}
282
283static void __redisRunCallback(redisAsyncContext *ac, redisCallback *cb, redisReply *reply) {
284 redisContext *c = &(ac->c);

Callers 5

__redisAsyncFreeFunction · 0.85
__redisAsyncDisconnectFunction · 0.85
redisProcessCallbacksFunction · 0.85
redisAsyncHandleTimeoutFunction · 0.85

Calls 1

hi_freeFunction · 0.70

Tested by

no test coverage detected