MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_ThreadSafeContextUnlock

Function RM_ThreadSafeContextUnlock

src/module.cpp:5960–5963  ·  view source on GitHub ↗

Release the server lock after a thread safe API call was executed. */

Source from the content-addressed store, hash-verified

5958
5959/* Release the server lock after a thread safe API call was executed. */
5960void RM_ThreadSafeContextUnlock(RedisModuleCtx *ctx) {
5961 UNUSED(ctx);
5962 moduleReleaseGIL(FALSE /*fServerThread*/, true /*fExclusive*/);
5963}
5964
5965// A module may be triggered synchronously in a non-module context. In this scenario we don't lock again
5966// as the server thread acquisition is sufficient. If we did try to lock we would deadlock

Callers

nothing calls this directly

Calls 1

moduleReleaseGILFunction · 0.85

Tested by

no test coverage detected