| 2960 | } |
| 2961 | |
| 2962 | static PyObject* isInAtomicBlock(PyObject *cls, PyObject *args){ |
| 2963 | PythonThreadCtx* ptctx = GetPythonThreadCtx(); |
| 2964 | PyObject* res = (ptctx->flags & PythonThreadCtxFlag_InsideAtomic) ? Py_True : Py_False; |
| 2965 | Py_INCREF(res); |
| 2966 | return res; |
| 2967 | } |
| 2968 | |
| 2969 | static PyObject* setGearsSession(PyObject *cls, PyObject *args){ |
| 2970 | if(PyTuple_Size(args) != 1){ |
no test coverage detected