MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_ThreadSafeContextLock

Function RM_ThreadSafeContextLock

app/redis-6.2.6/src/module.c:5807–5810  ·  view source on GitHub ↗

Acquire the server lock before executing a thread safe API call. * This is not needed for `RedisModule_Reply*` calls when there is * a blocked client connected to the thread safe context. */

Source from the content-addressed store, hash-verified

5805 * This is not needed for `RedisModule_Reply*` calls when there is
5806 * a blocked client connected to the thread safe context. */
5807void RM_ThreadSafeContextLock(RedisModuleCtx *ctx) {
5808 UNUSED(ctx);
5809 moduleAcquireGIL();
5810}
5811
5812/* Similar to RM_ThreadSafeContextLock but this function
5813 * would not block if the server lock is already acquired.

Callers

nothing calls this directly

Calls 1

moduleAcquireGILFunction · 0.85

Tested by

no test coverage detected