Home
last modified time | relevance | path

Searched defs:tstate (Results 1 – 25 of 71) sorted by relevance

123

/external/python/cpython3/Include/internal/
Dpycore_ceval.h38 _PyEval_EvalFrame(PyThreadState *tstate, PyFrameObject *f, int throwflag) in _PyEval_EvalFrame()
67 static inline int _Py_MakeRecCheck(PyThreadState *tstate) { in _Py_MakeRecCheck()
72 static inline int _Py_MakeRecCheck(PyThreadState *tstate) { in _Py_MakeRecCheck()
81 static inline int _Py_EnterRecursiveCall(PyThreadState *tstate, in _Py_EnterRecursiveCall()
87 PyThreadState *tstate = PyThreadState_GET(); in _Py_EnterRecursiveCall_inline() local
105 static inline void _Py_LeaveRecursiveCall(PyThreadState *tstate) { in _Py_LeaveRecursiveCall()
114 PyThreadState *tstate = PyThreadState_GET(); in _Py_LeaveRecursiveCall_inline() local
Dpycore_pystate.h25 _Py_IsMainInterpreter(PyThreadState* tstate) in _Py_IsMainInterpreter()
80 _Py_EnsureFuncTstateNotNULL(const char *func, PyThreadState *tstate) in _Py_EnsureFuncTstateNotNULL()
88 #define _Py_EnsureTstateNotNULL(tstate) \ argument
101 PyThreadState *tstate = _PyThreadState_GET(); in _PyInterpreterState_GET() local
Dpycore_call.h32 _PyObject_CallNoArgTstate(PyThreadState *tstate, PyObject *func) { in _PyObject_CallNoArgTstate()
Dpycore_pyerrors.h11 static inline PyObject* _PyErr_Occurred(PyThreadState *tstate) in _PyErr_Occurred()
/external/python/cpython3/Python/
Derrors.c40 _PyErr_Restore(PyThreadState *tstate, PyObject *type, PyObject *value, in _PyErr_Restore()
70 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_Restore() local
76 _PyErr_GetTopmostException(PyThreadState *tstate) in _PyErr_GetTopmostException()
102 _PyErr_SetObject(PyThreadState *tstate, PyObject *exception, PyObject *value) in _PyErr_SetObject()
168 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_SetObject() local
178 PyThreadState *tstate = _PyThreadState_GET(); in _PyErr_SetKeyError() local
189 _PyErr_SetNone(PyThreadState *tstate, PyObject *exception) in _PyErr_SetNone()
198 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_SetNone() local
204 _PyErr_SetString(PyThreadState *tstate, PyObject *exception, in _PyErr_SetString()
215 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_SetString() local
[all …]
Dpystate.c199 PyThreadState *tstate = _PyThreadState_GET(); in PyInterpreterState_New() local
283 PyThreadState *tstate = _PyThreadState_GET(); in PyInterpreterState_Clear() local
325 PyThreadState *tstate; in zapthreads() local
386 PyThreadState *tstate = _PyThreadState_Swap(gilstate, NULL); in _PyInterpreterState_DeleteExceptMain() local
423 PyThreadState *tstate = _PyThreadState_GET(); in PyInterpreterState_Get() local
523 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp); in _PyInterpreterState_IDDecref() local
570 PyThreadState *tstate = (PyThreadState *)PyMem_RawMalloc(sizeof(PyThreadState)); in new_threadstate() local
647 _PyThreadState_Init(PyThreadState *tstate) in _PyThreadState_Init()
672 _PyState_AddModule(PyThreadState *tstate, PyObject* module, struct PyModuleDef* def) in _PyState_AddModule()
712 PyThreadState *tstate = _PyThreadState_GET(); in PyState_AddModule() local
[all …]
Dsysmodule.c65 sys_get_object_id(PyThreadState *tstate, _Py_Identifier *key) in sys_get_object_id()
77 PyThreadState *tstate = _PyThreadState_GET(); in _PySys_GetObjectId() local
84 PyThreadState *tstate = _PyThreadState_GET(); in PySys_GetObject() local
93 sys_set_object_id(PyThreadState *tstate, _Py_Identifier *key, PyObject *v) in sys_set_object_id()
112 PyThreadState *tstate = _PyThreadState_GET(); in _PySys_SetObjectId() local
117 sys_set_object(PyThreadState *tstate, const char *name, PyObject *v) in sys_set_object()
136 PyThreadState *tstate = _PyThreadState_GET(); in PySys_SetObject() local
291 _PySys_Audit(PyThreadState *tstate, const char *event, in _PySys_Audit()
308 PyThreadState *tstate = _PyThreadState_GET(); in PySys_Audit() local
365 PyThreadState *tstate; in PySys_AddAuditHook() local
[all …]
Dpylifecycle.c142 init_importlib(PyThreadState *tstate, PyObject *sysmod) in init_importlib()
194 init_importlib_external(PyThreadState *tstate) in init_importlib_external()
451 PyThreadState *tstate = _PyThreadState_GET(); in pyinit_core_reconfigure() local
521 init_interp_create_gil(PyThreadState *tstate) in init_interp_create_gil()
560 PyThreadState *tstate = PyThreadState_New(interp); in pycore_create_interpreter() local
577 pycore_init_types(PyThreadState *tstate) in pycore_init_types()
637 pycore_init_builtins(PyThreadState *tstate) in pycore_init_builtins()
680 pycore_init_import_warnings(PyThreadState *tstate, PyObject *sysmod) in pycore_init_import_warnings()
720 pycore_interp_init(PyThreadState *tstate) in pycore_interp_init()
759 PyThreadState *tstate; in pyinit_config() local
[all …]
Dceval.c132 is_tstate_valid(PyThreadState *tstate) in is_tstate_valid()
272 _PyEval_InitGIL(PyThreadState *tstate) in _PyEval_InitGIL()
294 _PyEval_FiniGIL(PyThreadState *tstate) in _PyEval_FiniGIL()
353 PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); in PyEval_AcquireLock() local
363 PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); in PyEval_ReleaseLock() local
373 _PyEval_ReleaseLock(PyThreadState *tstate) in _PyEval_ReleaseLock()
381 PyEval_AcquireThread(PyThreadState *tstate) in PyEval_AcquireThread()
394 PyEval_ReleaseThread(PyThreadState *tstate) in PyEval_ReleaseThread()
417 PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); in _PyEval_ReInitThreads() local
442 _PyEval_SignalAsyncExc(PyThreadState *tstate) in _PyEval_SignalAsyncExc()
[all …]
Dimport.c55 _PyImportHooks_Init(PyThreadState *tstate) in _PyImportHooks_Init()
92 _PyImportZip_Init(PyThreadState *tstate) in _PyImportZip_Init()
173 PyThreadState *tstate = PyEval_SaveThread(); in _PyImport_AcquireLock() local
343 PyThreadState *tstate = _PyThreadState_GET(); in _PyImport_SetModule() local
351 PyThreadState *tstate = _PyThreadState_GET(); in _PyImport_SetModuleString() local
357 import_get_module(PyThreadState *tstate, PyObject *name) in import_get_module()
384 import_ensure_initialized(PyThreadState *tstate, PyObject *mod, PyObject *name) in import_ensure_initialized()
431 _PyImport_Cleanup(PyThreadState *tstate) in _PyImport_Cleanup()
701 PyThreadState *tstate = _PyThreadState_GET(); in _PyImport_FixupExtensionObject() local
763 import_find_extension(PyThreadState *tstate, PyObject *name, in import_find_extension()
[all …]
Dceval_gil.h145 PyThreadState *tstate) in drop_gil()
194 tstate_must_exit(PyThreadState *tstate) in tstate_must_exit()
211 take_gil(PyThreadState *tstate) in take_gil()
Dtraceback.c792 dump_traceback(int fd, PyThreadState *tstate, int write_header) in dump_traceback()
837 _Py_DumpTraceback(int fd, PyThreadState *tstate) in _Py_DumpTraceback()
848 write_thread_id(int fd, PyThreadState *tstate, int is_current) in write_thread_id()
870 PyThreadState *tstate; in _Py_DumpTracebackThreads() local
/external/python/cpython3/Objects/
Dcall.c22 null_error(PyThreadState *tstate) in null_error()
33 _Py_CheckFunctionResult(PyThreadState *tstate, PyObject *callable, in _Py_CheckFunctionResult()
88 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_CallNoArgs() local
94 _PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_FastCallDictTstate()
141 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_VectorcallDict() local
147 _PyObject_MakeTpCall(PyThreadState *tstate, PyObject *callable, in _PyObject_MakeTpCall()
207 PyThreadState *tstate = _PyThreadState_GET(); in PyVectorcall_Call() local
251 _PyObject_Call(PyThreadState *tstate, PyObject *callable, in _PyObject_Call()
291 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_Call() local
299 PyThreadState *tstate = _PyThreadState_GET(); in PyCFunction_Call() local
[all …]
Dmethodobject.c384 cfunction_check_kwargs(PyThreadState *tstate, PyObject *func, PyObject *kwnames) in cfunction_check_kwargs()
403 cfunction_enter_call(PyThreadState *tstate, PyObject *func) in cfunction_enter_call()
416 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL() local
435 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL_KEYWORDS() local
451 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL_KEYWORDS_METHOD() local
467 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_NOARGS() local
494 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_O() local
523 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_call() local
Dobject.c406 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_Repr() local
466 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_Str() local
657 do_richcompare(PyThreadState *tstate, PyObject *v, PyObject *w, int op) in do_richcompare()
711 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_RichCompare() local
2032 PyThreadState *tstate = _PyThreadState_GET(); in _PyTrash_deposit_object() local
2046 PyThreadState *tstate = _PyThreadState_GET(); in _PyTrash_thread_deposit_object() local
2060 PyThreadState *tstate = _PyThreadState_GET(); in _PyTrash_destroy_chain() local
2087 PyThreadState *tstate = _PyThreadState_GET(); in _PyTrash_thread_destroy_chain() local
2123 _PyTrash_begin(PyThreadState *tstate, PyObject *op) in _PyTrash_begin()
2137 _PyTrash_end(PyThreadState *tstate) in _PyTrash_end()
/external/python/cpython2/Python/
Dpystate.c159 PyThreadState *tstate = (PyThreadState *)malloc(sizeof(PyThreadState)); in new_threadstate() local
223 _PyThreadState_Init(PyThreadState *tstate) in _PyThreadState_Init()
231 PyThreadState_Clear(PyThreadState *tstate) in PyThreadState_Clear()
259 tstate_delete_common(PyThreadState *tstate) in tstate_delete_common()
297 PyThreadState_Delete(PyThreadState *tstate) in PyThreadState_Delete()
313 PyThreadState *tstate = _PyThreadState_Current; in PyThreadState_DeleteCurrent() local
393 PyThreadState *tstate = PyThreadState_GET(); in PyThreadState_SetAsyncExc() local
446 PyThreadState_Next(PyThreadState *tstate) { in PyThreadState_Next()
510 PyThreadState_IsCurrent(PyThreadState *tstate) in PyThreadState_IsCurrent()
548 _PyGILState_NoteThreadState(PyThreadState* tstate) in _PyGILState_NoteThreadState()
Dsysmodule.c52 PyThreadState *tstate = PyThreadState_GET(); in PySys_GetObject() local
74 PyThreadState *tstate = PyThreadState_GET(); in PySys_SetObject() local
152 PyThreadState *tstate; in sys_exc_info() local
172 PyThreadState *tstate; in sys_exc_clear() local
304 call_trampoline(PyThreadState *tstate, PyObject* callback, in call_trampoline()
339 PyThreadState *tstate = frame->f_tstate; in profile_trampoline() local
357 PyThreadState *tstate = frame->f_tstate; in trace_trampoline() local
408 PyThreadState *tstate = PyThreadState_GET(); in sys_gettrace() local
447 PyThreadState *tstate = PyThreadState_GET(); in sys_getprofile() local
495 PyThreadState *tstate = PyThreadState_Get(); in sys_settscdump() local
[all …]
Dceval.c86 PyThreadState *tstate = PyThreadState_Get(); in dump_tsc() local
271 PyEval_AcquireThread(PyThreadState *tstate) in PyEval_AcquireThread()
284 PyEval_ReleaseThread(PyThreadState *tstate) in PyEval_ReleaseThread()
302 PyThreadState *tstate; in PyEval_ReInitThreads() local
341 PyThreadState *tstate = PyThreadState_Swap(NULL); in PyEval_SaveThread() local
352 PyEval_RestoreThread(PyThreadState *tstate) in PyEval_RestoreThread()
620 PyThreadState *tstate = PyThreadState_GET(); in _Py_CheckRecursiveCall() local
810 PyThreadState *tstate = PyThreadState_GET(); in PyEval_EvalFrameEx() local
3374 PyThreadState *tstate = PyThreadState_GET(); in PyEval_EvalCodeEx() local
3719 set_exc_info(PyThreadState *tstate, in set_exc_info()
[all …]
Derrors.c27 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Restore() local
78 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Occurred() local
151 PyThreadState *tstate = NULL; in PyErr_NormalizeException() local
246 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Fetch() local
/external/python/cpython3/Modules/
Dgcmodule.c156 _PyGC_Init(PyThreadState *tstate) in _PyGC_Init()
919 handle_legacy_finalizers(PyThreadState *tstate, in handle_legacy_finalizers()
946 finalize_garbage(PyThreadState *tstate, PyGC_Head *collectable) in finalize_garbage()
982 delete_garbage(PyThreadState *tstate, GCState *gcstate, in delete_garbage()
1170 collect(PyThreadState *tstate, int generation, in collect()
1337 invoke_gc_callback(PyThreadState *tstate, const char *phase, in invoke_gc_callback()
1382 collect_with_callback(PyThreadState *tstate, int generation) in collect_with_callback()
1394 collect_generations(PyThreadState *tstate) in collect_generations()
1461 PyThreadState *tstate = _PyThreadState_GET(); in gc_enable_impl() local
1477 PyThreadState *tstate = _PyThreadState_GET(); in gc_disable_impl() local
[all …]
Dsignalmodule.c473 PyThreadState *tstate = _PyThreadState_GET(); in signal_signal_impl() local
701 PyThreadState *tstate = _PyThreadState_GET(); in signal_set_wakeup_fd() local
1673 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_CheckSignals() local
1684 _PyErr_CheckSignalsTstate(PyThreadState *tstate) in _PyErr_CheckSignalsTstate()
1743 PyThreadState *tstate = _PyThreadState_GET(); in _PyErr_CheckSignals() local
1827 _PyOS_InterruptOccurred(PyThreadState *tstate) in _PyOS_InterruptOccurred()
1847 PyThreadState *tstate = _PyThreadState_GET(); in PyOS_InterruptOccurred() local
Dfaulthandler.c210 PyThreadState *tstate = _PyThreadState_UncheckedGet(); in get_thread_state() local
225 PyThreadState *tstate; in faulthandler_dump_traceback() local
260 PyThreadState *tstate; in faulthandler_dump_traceback_py() local
524 PyThreadState *tstate; in faulthandler_py_enable() local
690 PyThreadState *tstate; in faulthandler_dump_traceback_later() local
893 PyThreadState *tstate; in faulthandler_register_py() local
/external/python/cpython3/Include/cpython/
Dabstract.h103 _PyObject_VectorcallTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_VectorcallTstate()
126 PyThreadState *tstate = PyThreadState_GET(); in PyObject_Vectorcall() local
153 _PyObject_FastCallTstate(PyThreadState *tstate, PyObject *func, PyObject *const *args, Py_ssize_t n… in _PyObject_FastCallTstate()
162 PyThreadState *tstate = PyThreadState_GET(); in _PyObject_FastCall() local
171 PyThreadState *tstate = PyThreadState_GET(); in _PyObject_CallNoArg() local
180 PyThreadState *tstate; in PyObject_CallOneArg() local
/external/python/cpython3/Parser/
Dmyreadline.c30 my_fgets(PyThreadState* tstate, char *buf, int len, FILE *fp) in my_fgets()
116 _PyOS_WindowsConsoleReadline(PyThreadState *tstate, HANDLE hStdIn) in _PyOS_WindowsConsoleReadline()
245 PyThreadState *tstate = _PyOS_ReadlineTState; in PyOS_StdioReadline() local
361 PyThreadState *tstate = _PyThreadState_GET(); in PyOS_Readline() local
/external/python/cffi/c/
Dmisc_thread_common.h77 PyThreadState *tstate; member
150 PyThreadState *tstate = NULL; in thread_canary_free_zombies() local
174 thread_canary_register(PyThreadState *tstate) in thread_canary_register()

123