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

Function RM_FreeThreadSafeContext

src/module.cpp:5925–5930  ·  view source on GitHub ↗

Release a thread safe context. */

Source from the content-addressed store, hash-verified

5923
5924/* Release a thread safe context. */
5925void RM_FreeThreadSafeContext(RedisModuleCtx *ctx) {
5926 moduleAcquireGIL(false /*fServerThread*/);
5927 moduleFreeContext(ctx);
5928 moduleReleaseGIL(false /*fServerThread*/);
5929 zfree(ctx);
5930}
5931
5932
5933/* Acquire the server lock before executing a thread safe API call.

Callers

nothing calls this directly

Calls 4

moduleAcquireGILFunction · 0.85
moduleFreeContextFunction · 0.85
moduleReleaseGILFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected