MCPcopy Create free account
hub / github.com/RedisGears/RedisGears / RedisGearsPy_IsLockAcquired

Function RedisGearsPy_IsLockAcquired

plugins/python/redisgears_python.c:1150–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148}
1149
1150bool RedisGearsPy_IsLockAcquired(){
1151 PythonThreadCtx* ptctx = GetPythonThreadCtx();
1152 return ptctx->lockCounter > 0;
1153}
1154
1155void RedisGearsPy_Lock(PythonExecutionCtx* pectx){
1156 PythonThreadCtx* ptctx = GetPythonThreadCtx();

Callers 1

Python_SaveThreadFunction · 0.85

Calls 1

GetPythonThreadCtxFunction · 0.85

Tested by

no test coverage detected