MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / CommandCtx_Incref

Function CommandCtx_Incref

src/commands/cmd_context.c:66–74  ·  view source on GitHub ↗

increment command context reference count

Source from the content-addressed store, hash-verified

64
65// increment command context reference count
66void CommandCtx_Incref
67(
68 CommandCtx *command_ctx
69) {
70 ASSERT(command_ctx != NULL);
71
72 // atomicly increment reference count
73 atomic_fetch_add(&command_ctx->ref_count, 1);
74}
75
76RedisModuleCtx *CommandCtx_GetRedisCtx
77(

Callers 1

Globals_GetCommandCtxsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected