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. */
| 5934 | * This is not needed for `RedisModule_Reply*` calls when there is |
| 5935 | * a blocked client connected to the thread safe context. */ |
| 5936 | void RM_ThreadSafeContextLock(RedisModuleCtx *ctx) { |
| 5937 | UNUSED(ctx); |
| 5938 | moduleSetThreadVariablesIfNeeded(); |
| 5939 | moduleAcquireGIL(FALSE /*fServerThread*/, true /*fExclusive*/); |
| 5940 | } |
| 5941 | |
| 5942 | /* Similar to RM_ThreadSafeContextLock but this function |
| 5943 | * would not block if the server lock is already acquired. |
nothing calls this directly
no test coverage detected