Home
last modified time | relevance | path

Searched refs:PyThreadState (Results 1 – 25 of 127) sorted by relevance

123456

/external/python/cpython2/Python/
Dpystate.c49 PyThreadState *_PyThreadState_Current = NULL;
53 static void _PyGILState_NoteThreadState(PyThreadState* tstate);
101 PyThreadState *p; in PyInterpreterState_Clear()
119 PyThreadState *p; in zapthreads()
151 threadstate_getframe(PyThreadState *self) in threadstate_getframe()
156 static PyThreadState *
159 PyThreadState *tstate = (PyThreadState *)malloc(sizeof(PyThreadState)); in new_threadstate()
210 PyThreadState *
216 PyThreadState *
223 _PyThreadState_Init(PyThreadState *tstate) in _PyThreadState_Init()
[all …]
/external/python/cpython3/Include/internal/
Dpycore_ceval.h17 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 …]
Dpycore_pystate.h53 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 …]
Dpycore_pyerrors.h11 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 …]
Dpycore_pylifecycle.h41 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);
Dpycore_call.h12 PyThreadState *tstate,
19 PyThreadState *tstate,
26 PyThreadState *tstate,
32 _PyObject_CallNoArgTstate(PyThreadState *tstate, PyObject *func) { in _PyObject_CallNoArgTstate()
Dpycore_runtime.h144 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()
Dpycore_sysmodule.h12 PyThreadState *tstate,
19 extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
/external/python/cpython2/Include/
Dpystate.h103 } PyThreadState; typedef
110 PyAPI_FUNC(PyThreadState *) PyThreadState_New(PyInterpreterState *);
111 PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *);
112 PyAPI_FUNC(void) _PyThreadState_Init(PyThreadState *);
113 PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *);
114 PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *);
119 PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void);
120 PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *);
127 PyAPI_DATA(PyThreadState *) _PyThreadState_Current;
178 PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
[all …]
Dceval.h117 PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void);
118 PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
126 PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
127 PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
131 PyThreadState *_save; \
/external/python/cpython3/Include/
Dpystate.h20 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);
Dceval.h118 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; \
/external/python/cpython3/Python/
Dpystate.c38 ((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 …]
Derrors.c36 _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 …]
Dpylifecycle.c60 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 …]
Dsysmodule.c67 sys_get_object_id(PyThreadState *tstate, _Py_Identifier *key) in sys_get_object_id()
85 PyThreadState *tstate = _PyThreadState_GET(); in _PySys_GetObjectId()
102 PyThreadState *tstate = _PyThreadState_GET(); in PySys_GetObject()
179 sys_audit_tstate(PyThreadState *ts, const char *event, in sys_audit_tstate()
313 _PySys_Audit(PyThreadState *tstate, const char *event, in _PySys_Audit()
330 PyThreadState *tstate = _PyThreadState_GET(); in PySys_Audit()
348 _PySys_ClearAuditHooks(PyThreadState *ts) in _PySys_ClearAuditHooks()
356 PyThreadState *finalizing = _PyRuntimeState_GetFinalizing(runtime); in _PySys_ClearAuditHooks()
387 PyThreadState *tstate; in PySys_AddAuditHook()
446 PyThreadState *tstate = _PyThreadState_GET(); in sys_addaudithook_impl()
[all …]
Dceval.c57 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 …]
Dimport.c30 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 …]
Dceval_gil.h145 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()
/external/python/cpython3/Objects/
Dcall.c12 _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 …]
/external/python/cpython3/Include/cpython/
Dpystate.h157 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);
Dabstract.h37 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()
Dceval.h6 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);
/external/python/cffi/c/
Dmisc_thread_common.h77 PyThreadState *tstate;
150 PyThreadState *tstate = NULL; in thread_canary_free_zombies()
174 thread_canary_register(PyThreadState *tstate) in thread_canary_register()
319 static PyThreadState *get_current_ts(void) in get_current_ts()
324 return (PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current); in get_current_ts()
326 return (PyThreadState*)_PyThreadState_Current; /* assume atomic read */ in get_current_ts()
336 PyThreadState *ts = PyGILState_GetThisThreadState(); in gil_ensure()
/external/python/cpython2/Mac/Modules/
DautoGIL.c21 PyThreadState **p_tstate = (PyThreadState **)info; in autoGILCallback()
56 PyThreadState **p_tstate; /* for use in the info field */ in autoGIL_installAutoGIL()
76 p_tstate = PyMem_Malloc(sizeof(PyThreadState *)); in autoGIL_installAutoGIL()

123456