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

Function isInAtomicBlock

plugins/python/redisgears_python.c:2962–2967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2960}
2961
2962static 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
2969static PyObject* setGearsSession(PyObject *cls, PyObject *args){
2970 if(PyTuple_Size(args) != 1){

Callers 1

__await__Method · 0.90

Calls 1

GetPythonThreadCtxFunction · 0.85

Tested by

no test coverage detected