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

Function registerGearsThread

plugins/python/redisgears_python.c:2904–2913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2902}
2903
2904static PyObject* registerGearsThread(PyObject *cls, PyObject *args){
2905 RedisGears_LockHanlderRegister();
2906 Py_INCREF(Py_None);
2907 PythonThreadCtx* ptctx = GetPythonThreadCtx();
2908
2909 // called from a python thread which means that the lock counter must be 1.
2910 ptctx->lockCounter = 1;
2911
2912 return Py_None;
2913}
2914
2915static CommandCtx* getCommandCtx(PythonThreadCtx* ptctx){
2916 CommandCtx* commandCtx = NULL;

Callers 1

fFunction · 0.90

Calls 1

GetPythonThreadCtxFunction · 0.85

Tested by

no test coverage detected