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

Function CommandCtx_ThreadSafeContextUnlock

src/commands/cmd_context.c:137–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void CommandCtx_ThreadSafeContextUnlock
138(
139 const CommandCtx *command_ctx
140) {
141 // release lock only when working with a blocked client
142 // otherwise we're running on Redis main thread
143 // no need to release lock
144 ASSERT(command_ctx != NULL && command_ctx->ctx != NULL);
145 if(command_ctx->bc) {
146 RedisModule_ThreadSafeContextUnlock(command_ctx->ctx);
147 }
148}
149
150void CommandCtx_UnblockClient
151(

Callers 1

_ExecuteQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected