| /third_party/python/Include/internal/ |
| D | pycore_ceval.h | 17 extern void _Py_FinishPendingCalls(PyThreadState *tstate); 28 extern PyStatus _PyEval_ReInitThreads(PyThreadState *tstate); 31 PyThreadState *tstate, 37 extern PyObject* _PyEval_GetBuiltins(PyThreadState *tstate); 39 PyThreadState *tstate, 44 _PyEval_EvalFrame(PyThreadState *tstate, PyFrameObject *f, int throwflag) in _PyEval_EvalFrame() 50 _PyEval_Vector(PyThreadState *tstate, 60 extern PyStatus _PyEval_InitGIL(PyThreadState *tstate); 63 extern void _PyEval_ReleaseLock(PyThreadState *tstate); 73 static inline int _Py_MakeRecCheck(PyThreadState *tstate) { in _Py_MakeRecCheck() [all …]
|
| D | pycore_pyerrors.h | 11 static inline PyObject* _PyErr_Occurred(PyThreadState *tstate) in _PyErr_Occurred() 33 PyThreadState *tstate, 39 PyThreadState *tstate, 43 PyThreadState *tstate, 49 PyThreadState *tstate, 56 PyAPI_FUNC(void) _PyErr_Clear(PyThreadState *tstate); 58 PyAPI_FUNC(void) _PyErr_SetNone(PyThreadState *tstate, PyObject *exception); 60 PyAPI_FUNC(PyObject *) _PyErr_NoMemory(PyThreadState *tstate); 63 PyThreadState *tstate, 68 PyThreadState *tstate, [all …]
|
| D | pycore_pystate.h | 53 PyAPI_FUNC(PyThreadState*) _PyThreadState_GetTSS(void); 56 static inline PyThreadState* 62 return (PyThreadState*)_Py_atomic_load_relaxed(&runtime->gilstate.tstate_current); in _PyRuntimeState_GetThreadState() 75 static inline PyThreadState* 92 _Py_EnsureFuncTstateNotNULL(const char *func, PyThreadState *tstate) in _Py_EnsureFuncTstateNotNULL() 113 PyThreadState *tstate = _PyThreadState_GET(); in _PyInterpreterState_GET() 124 PyThreadState *tstate); 127 PyThreadState *tstate); 129 PyAPI_FUNC(PyThreadState *) _PyThreadState_Swap( 131 PyThreadState *newts); [all …]
|
| D | pycore_pylifecycle.h | 41 extern PyStatus _PyUnicode_InitEncodings(PyThreadState *tstate); 63 PyThreadState *tstate, 67 extern int _PySys_UpdateConfig(PyThreadState *tstate); 77 extern PyStatus _PyImportZip_Init(PyThreadState *tstate); 113 extern PyStatus _PyGILState_SetTstate(PyThreadState *tstate); 130 PyAPI_FUNC(void) _PyErr_Print(PyThreadState *tstate); 134 PyAPI_FUNC(void) _PyThreadState_DeleteCurrent(PyThreadState *tstate);
|
| D | pycore_call.h | 12 PyThreadState *tstate, 19 PyThreadState *tstate, 26 PyThreadState *tstate, 32 _PyObject_CallNoArgTstate(PyThreadState *tstate, PyObject *func) { in _PyObject_CallNoArgTstate()
|
| D | pycore_runtime.h | 144 static inline PyThreadState* 146 return (PyThreadState*)_Py_atomic_load_relaxed(&runtime->_finalizing); in _PyRuntimeState_GetFinalizing() 150 _PyRuntimeState_SetFinalizing(_PyRuntimeState *runtime, PyThreadState *tstate) { in _PyRuntimeState_SetFinalizing()
|
| D | pycore_sysmodule.h | 12 PyThreadState *tstate, 19 extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
|
| D | pycore_traceback.h | 33 PyThreadState *tstate); 61 PyThreadState *current_tstate);
|
| /third_party/python/Include/ |
| D | pystate.h | 20 typedef struct _ts PyThreadState; typedef 58 PyAPI_FUNC(PyThreadState *) PyThreadState_New(PyInterpreterState *); 59 PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *); 60 PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *); 70 PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void); 83 PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *); 89 PyAPI_FUNC(PyInterpreterState*) PyThreadState_GetInterpreter(PyThreadState *tstate); 90 PyAPI_FUNC(PyFrameObject*) PyThreadState_GetFrame(PyThreadState *tstate); 91 PyAPI_FUNC(uint64_t) PyThreadState_GetID(PyThreadState *tstate); 138 PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
|
| D | ceval.h | 118 PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void); 119 PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *); 129 PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); 130 PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate); 133 PyThreadState *_save; \
|
| D | pylifecycle.h | 21 PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void); 22 PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *);
|
| /third_party/python/Python/ |
| D | pystate.c | 38 ((PyThreadState*)_Py_atomic_load_relaxed(&(gilstate)->tstate_current)) 44 static PyThreadState *_PyGILState_GetThisThreadState(struct _gilstate_runtime_state *gilstate); 45 static void _PyThreadState_Delete(PyThreadState *tstate, int check_current); 178 struct _gilstate_runtime_state *gilstate, PyThreadState* tstate); 209 PyThreadState *tstate = _PyThreadState_GET(); in PyInterpreterState_New() 288 interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate) in interpreter_clear() 297 for (PyThreadState *p = interp->tstate_head; p != NULL; p = p->next) { in interpreter_clear() 352 PyThreadState *current_tstate = _PyThreadState_GET(); in PyInterpreterState_Clear() 359 _PyInterpreterState_Clear(PyThreadState *tstate) in _PyInterpreterState_Clear() 368 PyThreadState *tstate; in zapthreads() [all …]
|
| D | errors.c | 36 _PyErr_FormatV(PyThreadState *tstate, PyObject *exception, 41 _PyErr_Restore(PyThreadState *tstate, PyObject *type, PyObject *value, in _PyErr_Restore() 71 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_Restore() 77 _PyErr_GetTopmostException(PyThreadState *tstate) in _PyErr_GetTopmostException() 115 _PyErr_SetObject(PyThreadState *tstate, PyObject *exception, PyObject *value) in _PyErr_SetObject() 195 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_SetObject() 205 PyThreadState *tstate = _PyThreadState_GET(); in _PyErr_SetKeyError() 216 _PyErr_SetNone(PyThreadState *tstate, PyObject *exception) in _PyErr_SetNone() 225 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_SetNone() 231 _PyErr_SetString(PyThreadState *tstate, PyObject *exception, in _PyErr_SetString() [all …]
|
| D | pylifecycle.c | 60 static PyStatus init_sys_streams(PyThreadState *tstate); 61 static void wait_for_thread_shutdown(PyThreadState *tstate); 156 init_importlib(PyThreadState *tstate, PyObject *sysmod) in init_importlib() 204 init_importlib_external(PyThreadState *tstate) in init_importlib_external() 444 interpreter_update_config(PyThreadState *tstate, int only_update_path_config) in interpreter_update_config() 475 PyThreadState *tstate = PyThreadState_Get(); in _PyInterpreterState_SetConfig() 520 PyThreadState **tstate_p, in pyinit_core_reconfigure() 524 PyThreadState *tstate = _PyThreadState_GET(); in pyinit_core_reconfigure() 594 init_interp_create_gil(PyThreadState *tstate) in init_interp_create_gil() 621 PyThreadState **tstate_p) in pycore_create_interpreter() [all …]
|
| D | sysmodule.c | 68 sys_get_object_id(PyThreadState *tstate, _Py_Identifier *key) in sys_get_object_id() 86 PyThreadState *tstate = _PyThreadState_GET(); in _PySys_GetObjectId() 103 PyThreadState *tstate = _PyThreadState_GET(); in PySys_GetObject() 180 sys_audit_tstate(PyThreadState *ts, const char *event, in sys_audit_tstate() 314 _PySys_Audit(PyThreadState *tstate, const char *event, in _PySys_Audit() 331 PyThreadState *tstate = _PyThreadState_GET(); in PySys_Audit() 349 _PySys_ClearAuditHooks(PyThreadState *ts) in _PySys_ClearAuditHooks() 357 PyThreadState *finalizing = _PyRuntimeState_GetFinalizing(runtime); in _PySys_ClearAuditHooks() 388 PyThreadState *tstate; in PySys_AddAuditHook() 447 PyThreadState *tstate = _PyThreadState_GET(); in sys_addaudithook_impl() [all …]
|
| D | ceval.c | 57 PyThreadState *tstate, PyTraceInfo *, PyObject ***pp_stack, 60 PyThreadState *tstate, PyTraceInfo *, PyObject *func, 65 static int prtrace(PyThreadState *, PyObject *, const char *); 68 PyThreadState *, PyFrameObject *, 72 PyThreadState *, PyFrameObject *, 76 PyThreadState *, PyFrameObject *, 79 PyThreadState *, PyFrameObject *, 85 static PyObject * import_name(PyThreadState *, PyFrameObject *, 87 static PyObject * import_from(PyThreadState *, PyObject *, PyObject *); 88 static int import_all_from(PyThreadState *, PyObject *, PyObject *); [all …]
|
| D | import.c | 30 static PyObject *import_add_module(PyThreadState *tstate, PyObject *name); 54 _PyImportZip_Init(PyThreadState *tstate) in _PyImportZip_Init() 135 PyThreadState *tstate = PyEval_SaveThread(); in _PyImport_AcquireLock() 319 import_get_module(PyThreadState *tstate, PyObject *name) in import_get_module() 435 PyThreadState *tstate = _PyThreadState_GET(); in _PyImport_FixupExtensionObject() 499 import_find_extension(PyThreadState *tstate, PyObject *name, in import_find_extension() 564 PyThreadState *tstate = _PyThreadState_GET(); in _PyImport_FindExtensionObject() 584 import_add_module(PyThreadState *tstate, PyObject *name) in import_add_module() 627 PyThreadState *tstate = _PyThreadState_GET(); in PyImport_AddModuleObject() 661 remove_module(PyThreadState *tstate, PyObject *name) in remove_module() [all …]
|
| D | ceval_gil.h | 145 PyThreadState *tstate) in drop_gil() 174 if (((PyThreadState*)_Py_atomic_load_relaxed(&gil->last_holder)) == tstate) in drop_gil() 198 tstate_must_exit(PyThreadState *tstate) in tstate_must_exit() 204 PyThreadState *finalizing = _PyRuntimeState_GetFinalizing(&_PyRuntime); in tstate_must_exit() 215 take_gil(PyThreadState *tstate) in take_gil() 283 if (tstate != (PyThreadState*)_Py_atomic_load_relaxed(&gil->last_holder)) { in take_gil()
|
| /third_party/python/Objects/ |
| D | call.c | 12 _PyStack_UnpackDict(PyThreadState *tstate, 22 null_error(PyThreadState *tstate) in null_error() 33 _Py_CheckFunctionResult(PyThreadState *tstate, PyObject *callable, in _Py_CheckFunctionResult() 85 PyThreadState *tstate = _PyThreadState_GET(); in _Py_CheckSlotResult() 112 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_CallNoArgs() 118 _PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_FastCallDictTstate() 165 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_VectorcallDict() 171 _PyObject_MakeTpCall(PyThreadState *tstate, PyObject *callable, in _PyObject_MakeTpCall() 231 PyThreadState *tstate = _PyThreadState_GET(); in PyVectorcall_Call() 276 _PyObject_Call(PyThreadState *tstate, PyObject *callable, in _PyObject_Call() [all …]
|
| D | methodobject.c | 388 cfunction_check_kwargs(PyThreadState *tstate, PyObject *func, PyObject *kwnames) in cfunction_check_kwargs() 407 cfunction_enter_call(PyThreadState *tstate, PyObject *func) in cfunction_enter_call() 420 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL() 439 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL_KEYWORDS() 455 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL_KEYWORDS_METHOD() 471 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_NOARGS() 498 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_O() 527 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_call()
|
| /third_party/python/Include/cpython/ |
| D | pystate.h | 157 PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *); 161 PyAPI_FUNC(PyThreadState *) _PyThreadState_UncheckedGet(void); 163 PyAPI_FUNC(PyObject *) _PyThreadState_GetDict(PyThreadState *tstate); 197 PyAPI_FUNC(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *); 198 PyAPI_FUNC(PyThreadState *) PyThreadState_Next(PyThreadState *); 203 typedef PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, PyFrameObject *, int);
|
| D | abstract.h | 37 PyThreadState *tstate, 48 PyThreadState *tstate, 99 _PyObject_VectorcallTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_VectorcallTstate() 122 PyThreadState *tstate = PyThreadState_Get(); in PyObject_Vectorcall() 149 _PyObject_FastCallTstate(PyThreadState *tstate, PyObject *func, PyObject *const *args, Py_ssize_t n… in _PyObject_FastCallTstate() 158 PyThreadState *tstate = PyThreadState_Get(); in _PyObject_FastCall() 167 PyThreadState *tstate = PyThreadState_Get(); in _PyObject_CallNoArg() 176 PyThreadState *tstate; in PyObject_CallOneArg()
|
| D | ceval.h | 6 PyAPI_DATA(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg); 8 PyAPI_FUNC(int) _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg); 22 PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int exc);
|
| D | frameobject.h | 70 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *, 75 _PyFrame_New_NoTrack(PyThreadState *, PyFrameConstructor *, PyObject *);
|
| /third_party/python/Parser/ |
| D | myreadline.c | 20 PyThreadState* _PyOS_ReadlineTState = NULL; 30 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() 359 PyThreadState *tstate = _PyThreadState_GET(); in PyOS_Readline()
|