| 222 | } |
| 223 | |
| 224 | void 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 | |
| 236 | void GraphContext_UnlockCommit |
| 237 | ( |
nothing calls this directly
no test coverage detected