Home
last modified time | relevance | path

Searched refs:PyThreadState_GET (Results 1 – 25 of 54) sorted by relevance

123

/external/python/cpython3/Include/
Dceval.h93 (_Py_MakeRecCheck(PyThreadState_GET()->recursion_depth) && \
96 do{ if(_Py_MakeEndRecCheck(PyThreadState_GET()->recursion_depth)) \
97 PyThreadState_GET()->overflowed = 0; \
112 ++(PyThreadState_GET()->stackcheck_counter) > 64)
129 do { unsigned char _old = PyThreadState_GET()->recursion_critical;\
130 PyThreadState_GET()->recursion_critical = 1;
133 PyThreadState_GET()->recursion_critical = _old; \
Dpystate.h365 # define PyThreadState_GET() \ macro
368 # define PyThreadState_GET() PyThreadState_Get() macro
/external/python/cpython3/Python/
Dsysmodule.c59 PyThreadState *tstate = PyThreadState_GET(); in _PySys_GetObjectId()
69 PyThreadState *tstate = PyThreadState_GET(); in PySys_GetObject()
79 PyThreadState *tstate = PyThreadState_GET(); in _PySys_SetObjectId()
94 PyThreadState *tstate = PyThreadState_GET(); in PySys_SetObject()
345 _PyErr_StackItem *err_info = _PyErr_GetTopmostException(PyThreadState_GET()); in sys_exc_info()
578 PyThreadState *tstate = PyThreadState_GET(); in sys_gettrace()
616 PyThreadState *tstate = PyThreadState_GET(); in sys_getprofile()
640 PyInterpreterState *interp = PyThreadState_GET()->interp; in sys_setcheckinterval()
661 PyInterpreterState *interp = PyThreadState_GET()->interp; in sys_getcheckinterval()
731 tstate = PyThreadState_GET(); in sys_setrecursionlimit()
[all …]
Dthread_nt.h193 PyThreadState *tstate = PyThreadState_GET(); in PyThread_start_new_thread()
338 PyThreadState_GET()->interp->pythread_stacksize = 0; in _pythread_nt_set_stacksize()
344 PyThreadState_GET()->interp->pythread_stacksize = size; in _pythread_nt_set_stacksize()
Dceval.c160 take_gil(PyThreadState_GET()); in PyEval_InitThreads()
178 PyThreadState *tstate = PyThreadState_GET(); in PyEval_AcquireLock()
226 PyThreadState *current_tstate = PyThreadState_GET(); in PyEval_ReInitThreads()
470 PyThreadState *tstate = PyThreadState_GET(); in _Py_CheckRecursiveCall()
546 PyThreadState *tstate = PyThreadState_GET(); in PyEval_EvalFrameEx()
563 PyThreadState *tstate = PyThreadState_GET(); in _PyEval_EvalFrameDefault()
3689 tstate = PyThreadState_GET(); in _PyEval_EvalCodeWithName()
3990 PyThreadState *tstate = PyThreadState_GET(); in do_raise()
4262 PyThreadState *tstate = PyThreadState_GET(); in _PyEval_CallTracing()
4316 PyThreadState *tstate = PyThreadState_GET(); in PyEval_SetProfile()
[all …]
Derrors.c31 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Restore()
85 PyThreadState *tstate = PyThreadState_GET(); in PyErr_SetObject()
178 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Occurred()
337 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Fetch()
357 PyThreadState *tstate = PyThreadState_GET(); in PyErr_GetExcInfo()
374 PyThreadState *tstate = PyThreadState_GET(); in PyErr_SetExcInfo()
Dthread_pthread.h199 PyThreadState *tstate = PyThreadState_GET(); in PyThread_start_new_thread()
626 PyThreadState_GET()->interp->pythread_stacksize = 0; in _pythread_pthread_set_stacksize()
643 PyThreadState_GET()->interp->pythread_stacksize = size; in _pythread_pthread_set_stacksize()
Dcodecs.c35 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyCodec_Register()
111 interp = PyThreadState_GET()->interp; in _PyCodec_Lookup()
196 interp = PyThreadState_GET()->interp; in _PyCodec_Forget()
629 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyCodec_RegisterError()
647 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyCodec_LookupError()
1499 PyInterpreterState *interp = PyThreadState_GET()->interp; in _PyCodecRegistry_Init()
Dcontext.c115 PyThreadState *ts = PyThreadState_GET(); in PyContext_Enter()
141 PyThreadState *ts = PyThreadState_GET(); in PyContext_Exit()
181 PyThreadState *ts = PyThreadState_GET(); in PyContextVar_Get()
385 PyThreadState *ts = PyThreadState_GET(); in context_get()
Ddynload_shlib.c94 dlopenflags = PyThreadState_GET()->interp->dlopenflags; in _PyImport_FindSharedFuncptr()
Dthread.c95 return PyThreadState_GET()->interp->pythread_stacksize; in PyThread_get_stacksize()
Dpylifecycle.c643 PyThreadState *tstate = PyThreadState_GET(); in _Py_InitializeCore_impl()
1132 tstate = PyThreadState_GET(); in Py_FinalizeEx()
1538 if (tstate != PyThreadState_GET()) in Py_EndInterpreter()
2135 PyThreadState *tstate = PyThreadState_GET(); in fatal_error()
2211 ts = PyThreadState_GET(); in _Py_PyAtExit()
Dimport.c308 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyImport_GetModuleDict()
401 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyImport_Cleanup()
891 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyImport_ExecCodeModuleWithPathnames()
971 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyImport_ExecCodeModuleObject()
1618 PyInterpreterState *interp = PyThreadState_GET()->interp; in import_find_and_load()
1679 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyImport_ImportModuleLevelObject()
/external/python/cpython2/Python/
Dsysmodule.c52 PyThreadState *tstate = PyThreadState_GET(); in PySys_GetObject()
74 PyThreadState *tstate = PyThreadState_GET(); in PySys_SetObject()
90 PyInterpreterState *interp = PyThreadState_GET()->interp; in sys_displayhook()
153 tstate = PyThreadState_GET(); in sys_exc_info()
179 tstate = PyThreadState_GET(); in sys_exc_clear()
408 PyThreadState *tstate = PyThreadState_GET(); in sys_gettrace()
447 PyThreadState *tstate = PyThreadState_GET(); in sys_getprofile()
632 PyThreadState *tstate = PyThreadState_GET(); in sys_setdlopenflags()
657 PyThreadState *tstate = PyThreadState_GET(); in sys_getdlopenflags()
815 PyFrameObject *f = PyThreadState_GET()->frame; in sys_getframe()
Dcodecs.c31 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyCodec_Register()
105 interp = PyThreadState_GET()->interp; in _PyCodec_Lookup()
565 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyCodec_RegisterError()
583 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyCodec_LookupError()
1001 PyInterpreterState *interp = PyThreadState_GET()->interp; in _PyCodecRegistry_Init()
Derrors.c27 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Restore()
78 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Occurred()
227 tstate = PyThreadState_GET(); in PyErr_NormalizeException()
246 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Fetch()
Ddynload_shlib.c112 dlopenflags = PyThreadState_GET()->interp->dlopenflags; in _PyImport_GetDynLoadFunc()
Dceval.c317 tstate = PyThreadState_GET(); in PyEval_ReInitThreads()
620 PyThreadState *tstate = PyThreadState_GET(); in _Py_CheckRecursiveCall()
810 PyThreadState *tstate = PyThreadState_GET(); in PyEval_EvalFrameEx()
3374 PyThreadState *tstate = PyThreadState_GET(); in PyEval_EvalCodeEx()
3815 PyThreadState *tstate = PyThreadState_GET(); in do_raise()
4101 PyThreadState *tstate = PyThreadState_GET(); in PyEval_SetProfile()
4118 PyThreadState *tstate = PyThreadState_GET(); in PyEval_SetTrace()
4139 return PyThreadState_GET()->interp->builtins; in PyEval_GetBuiltins()
4167 PyThreadState *tstate = PyThreadState_GET(); in PyEval_GetFrame()
4349 PyThreadState *tstate = PyThreadState_GET(); in call_function()
[all …]
Dtraceback.c108 PyThreadState *tstate = PyThreadState_GET(); in PyTraceBack_Here()
/external/python/cpython2/Include/
Dpystate.h130 #define PyThreadState_GET() PyThreadState_Get() macro
132 #define PyThreadState_GET() (_PyThreadState_Current) macro
Dceval.h49 (_Py_MakeRecCheck(PyThreadState_GET()->recursion_depth) && \
52 (--PyThreadState_GET()->recursion_depth)
/external/python/cpython2/Parser/
Dmyreadline.c172 if (_PyOS_ReadlineTState == PyThreadState_GET()) { in PyOS_Readline()
193 _PyOS_ReadlineTState = PyThreadState_GET(); in PyOS_Readline()
/external/python/cpython3/Parser/
Dmyreadline.c327 if (_PyOS_ReadlineTState == PyThreadState_GET()) { in PyOS_Readline()
346 _PyOS_ReadlineTState = PyThreadState_GET(); in PyOS_Readline()
/external/python/cpython3/Objects/
Dmoduleobject.c176 if (!_PyImport_IsInitialized(PyThreadState_GET()->interp)) in PyModule_Create2()
694 PyThreadState *tstate = PyThreadState_GET(); in module_repr()
/external/python/cpython2/Objects/
Dgenobject.c47 PyThreadState *tstate = PyThreadState_GET(); in gen_send_ex()

123