Home
last modified time | relevance | path

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

1234

/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 …]
Dsysmodule.c52 PyThreadState *tstate = PyThreadState_GET(); in PySys_GetObject()
74 PyThreadState *tstate = PyThreadState_GET(); in PySys_SetObject()
152 PyThreadState *tstate; in sys_exc_info()
172 PyThreadState *tstate; in sys_exc_clear()
304 call_trampoline(PyThreadState *tstate, PyObject* callback, in call_trampoline()
339 PyThreadState *tstate = frame->f_tstate; in profile_trampoline()
357 PyThreadState *tstate = frame->f_tstate; in trace_trampoline()
408 PyThreadState *tstate = PyThreadState_GET(); in sys_gettrace()
447 PyThreadState *tstate = PyThreadState_GET(); in sys_getprofile()
495 PyThreadState *tstate = PyThreadState_Get(); in sys_settscdump()
[all …]
Dceval.c86 PyThreadState *tstate = PyThreadState_Get(); in dump_tsc()
146 static void set_exc_info(PyThreadState *, PyObject *, PyObject *, PyObject *);
147 static void reset_exc_info(PyThreadState *);
271 PyEval_AcquireThread(PyThreadState *tstate) in PyEval_AcquireThread()
284 PyEval_ReleaseThread(PyThreadState *tstate) in PyEval_ReleaseThread()
302 PyThreadState *tstate; in PyEval_ReInitThreads()
338 PyThreadState *
341 PyThreadState *tstate = PyThreadState_Swap(NULL); in PyEval_SaveThread()
352 PyEval_RestoreThread(PyThreadState *tstate) in PyEval_RestoreThread()
620 PyThreadState *tstate = PyThreadState_GET(); in _Py_CheckRecursiveCall()
[all …]
Derrors.c27 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Restore()
78 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Occurred()
151 PyThreadState *tstate = NULL; in PyErr_NormalizeException()
246 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Fetch()
/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; \
Dframeobject.h39 PyThreadState *f_tstate;
61 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
Dpythonrun.h32 PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void);
33 PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *);
153 PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
/external/python/cpython3/Include/
Dpystate.h195 typedef struct _ts PyThreadState; typedef
304 } PyThreadState; typedef
328 PyAPI_FUNC(PyThreadState *) PyThreadState_New(PyInterpreterState *);
330 PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *);
331 PyAPI_FUNC(void) _PyThreadState_Init(PyThreadState *);
333 PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *);
334 PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *);
336 PyAPI_FUNC(void) _PyThreadState_DeleteExcept(PyThreadState *tstate);
346 PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void);
351 PyAPI_FUNC(PyThreadState *) _PyThreadState_UncheckedGet(void);
[all …]
Dceval.h190 PyAPI_FUNC(PyThreadState *) PyEval_SaveThread(void);
191 PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *);
200 PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate);
201 PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
214 PyThreadState *_save; \
Dtraceback.h54 PyThreadState *tstate);
82 PyThreadState *current_tstate);
Dframeobject.h56 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
60 PyFrameObject* _PyFrame_New_NoTrack(PyThreadState *, PyCodeObject *,
Dpylifecycle.h108 PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void);
109 PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *);
/external/python/cpython3/Python/
Dpystate.c8 ((PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current))
95 static void _PyGILState_NoteThreadState(PyThreadState* tstate);
196 PyThreadState *p; in PyInterpreterState_Clear()
224 PyThreadState *p; in zapthreads()
339 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp); in _PyInterpreterState_IDDecref()
341 PyThreadState *save_tstate = PyThreadState_Swap(tstate); in _PyInterpreterState_IDDecref()
350 threadstate_getframe(PyThreadState *self) in threadstate_getframe()
355 static PyThreadState *
358 PyThreadState *tstate = (PyThreadState *)PyMem_RawMalloc(sizeof(PyThreadState)); in new_threadstate()
427 PyThreadState *
[all …]
Dceval_gil.h149 static void drop_gil(PyThreadState *tstate) in drop_gil()
174 if (((PyThreadState*)_Py_atomic_load_relaxed( in drop_gil()
191 static void take_gil(PyThreadState *tstate) in take_gil()
228 if (tstate != (PyThreadState*)_Py_atomic_load_relaxed( in take_gil()
Dpylifecycle.c76 extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *);
643 PyThreadState *tstate = PyThreadState_GET(); in _Py_InitializeCore_impl()
718 PyThreadState *tstate = PyThreadState_New(interp); in _Py_InitializeCore_impl()
1123 PyThreadState *tstate; in Py_FinalizeEx()
1354 new_interpreter(PyThreadState **tstate_p) in new_interpreter()
1357 PyThreadState *tstate, *save_tstate; in new_interpreter()
1509 PyThreadState *
1512 PyThreadState *tstate; in Py_NewInterpreter()
1534 Py_EndInterpreter(PyThreadState *tstate) in Py_EndInterpreter()
2133 PyThreadState *tss_tstate = PyGILState_GetThisThreadState(); in fatal_error()
[all …]
Dceval.c46 PyThreadState *, PyFrameObject *,
49 PyThreadState *, PyFrameObject *,
52 PyThreadState *, PyFrameObject *);
54 PyThreadState *, PyFrameObject *,
178 PyThreadState *tstate = PyThreadState_GET(); in PyEval_AcquireLock()
191 drop_gil((PyThreadState*)_Py_atomic_load_relaxed( in PyEval_ReleaseLock()
196 PyEval_AcquireThread(PyThreadState *tstate) in PyEval_AcquireThread()
209 PyEval_ReleaseThread(PyThreadState *tstate) in PyEval_ReleaseThread()
226 PyThreadState *current_tstate = PyThreadState_GET(); in PyEval_ReInitThreads()
252 PyThreadState *
[all …]
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()
578 PyThreadState *tstate = PyThreadState_GET(); in sys_gettrace()
616 PyThreadState *tstate = PyThreadState_GET(); in sys_getprofile()
710 PyThreadState *tstate; in sys_setrecursionlimit()
1168 PyThreadState *tstate = PyThreadState_GET(); in sys_setdlopenflags()
1190 PyThreadState *tstate = PyThreadState_GET(); in sys_getdlopenflags()
1736 PyThreadState *tstate = PyThreadState_GET(); in _PySys_ReadPreInitOptions()
[all …]
Derrors.c31 PyThreadState *tstate = PyThreadState_GET(); in PyErr_Restore()
57 _PyErr_GetTopmostException(PyThreadState *tstate) in _PyErr_GetTopmostException()
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()
Dtraceback.c784 dump_traceback(int fd, PyThreadState *tstate, int write_header) in dump_traceback()
817 _Py_DumpTraceback(int fd, PyThreadState *tstate) in _Py_DumpTraceback()
828 write_thread_id(int fd, PyThreadState *tstate, int is_current) in write_thread_id()
848 PyThreadState *current_tstate) in _Py_DumpTracebackThreads()
850 PyThreadState *tstate; in _Py_DumpTracebackThreads()
/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()
/external/python/cpython2/Demo/pysvr/
Dpysvr.c54 static PyThreadState *gtstate;
215 static PyThreadState *the_tstate;
278 PyThreadState *tstate; in run_interpreter()
/external/python/cpython3/Modules/
Dfaulthandler.c204 static PyThreadState*
207 PyThreadState *tstate = _PyThreadState_UncheckedGet(); in get_thread_state()
222 PyThreadState *tstate; in faulthandler_dump_traceback()
257 PyThreadState *tstate; in faulthandler_dump_traceback_py()
488 PyThreadState *tstate; in faulthandler_py_enable()
651 PyThreadState *tstate; in faulthandler_dump_traceback_later()
833 PyThreadState *tstate; in faulthandler_register_py()
D_threadmodule.c768 PyThreadState *tstate; in local_clear()
979 PyThreadState *tstate;
986 PyThreadState *tstate; in t_bootstrap()
1159 PyThreadState *tstate = PyThreadState_Get(); in thread__count()
1200 PyThreadState *tstate = PyThreadState_Get(); in thread__set_sentinel()
1353 PyThreadState *tstate = PyThreadState_Get(); in PyInit__thread()
/external/python/cpython2/Doc/c-api/
Dinit.rst367 single: PyThreadState
368 single: PyThreadState
371 inside a data structure called :c:type:`PyThreadState`. There's also one
372 global variable pointing to the current :c:type:`PyThreadState`: it can
404 PyThreadState *_save;
508 .. c:type:: PyThreadState
565 .. c:function:: PyThreadState* PyEval_SaveThread()
574 .. c:function:: void PyEval_RestoreThread(PyThreadState *tstate)
583 .. c:function:: PyThreadState* PyThreadState_Get()
590 .. c:function:: PyThreadState* PyThreadState_Swap(PyThreadState *tstate)
[all …]

1234