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

Function GraphContext_LockForCommit

src/graph/graphcontext.c:224–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void GraphContext_LockForCommit
225(
226 RedisModuleCtx *ctx,
227 GraphContext *gc
228) {
229 // aquire GIL
230 RedisModule_ThreadSafeContextLock(ctx);
231
232 // acquire graph write lock
233 Graph_AcquireWriteLock(gc->g);
234}
235
236void GraphContext_UnlockCommit
237(

Callers

nothing calls this directly

Calls 1

Graph_AcquireWriteLockFunction · 0.85

Tested by

no test coverage detected