| 2902 | } |
| 2903 | |
| 2904 | static 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 | |
| 2915 | static CommandCtx* getCommandCtx(PythonThreadCtx* ptctx){ |
| 2916 | CommandCtx* commandCtx = NULL; |
no test coverage detected