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

Function moduleReleaseGIL

src/module.cpp:6004–6017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6002}
6003
6004void moduleReleaseGIL(int fServerThread, int fExclusive) {
6005 if (FModuleCallBackLock(fServerThread)) {
6006 return;
6007 }
6008
6009 if (fServerThread)
6010 {
6011 s_moduleGIL.releaseRead();
6012 }
6013 else
6014 {
6015 s_moduleGIL.releaseWrite(fExclusive);
6016 }
6017}
6018
6019int moduleGILAcquiredByModule(void) {
6020 return s_moduleGIL.hasWriter();

Callers 6

beforeSleepFunction · 0.85
workerThreadMainFunction · 0.85
mainFunction · 0.85
moduleCloseKeyFunction · 0.85
RM_FreeThreadSafeContextFunction · 0.85

Calls 3

FModuleCallBackLockFunction · 0.85
releaseReadMethod · 0.80
releaseWriteMethod · 0.80

Tested by

no test coverage detected