/external/python/cpython2/Python/ |
D | pystate.c | 49 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 …]
|
D | sysmodule.c | 52 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 …]
|
D | ceval.c | 86 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 …]
|
D | errors.c | 27 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/ |
D | pystate.h | 103 } 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 …]
|
D | ceval.h | 117 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; \
|
D | frameobject.h | 39 PyThreadState *f_tstate; 61 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
|
D | pythonrun.h | 32 PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void); 33 PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *); 153 PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
|
/external/python/cpython3/Include/ |
D | pystate.h | 195 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 …]
|
D | ceval.h | 190 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; \
|
D | traceback.h | 54 PyThreadState *tstate); 82 PyThreadState *current_tstate);
|
D | frameobject.h | 56 PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *, 60 PyFrameObject* _PyFrame_New_NoTrack(PyThreadState *, PyCodeObject *,
|
D | pylifecycle.h | 108 PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void); 109 PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *);
|
/external/python/cpython3/Python/ |
D | pystate.c | 8 ((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 …]
|
D | ceval_gil.h | 149 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()
|
D | pylifecycle.c | 76 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 …]
|
D | ceval.c | 46 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 …]
|
D | sysmodule.c | 59 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 …]
|
D | errors.c | 31 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()
|
D | traceback.c | 784 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/ |
D | autoGIL.c | 21 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/ |
D | pysvr.c | 54 static PyThreadState *gtstate; 215 static PyThreadState *the_tstate; 278 PyThreadState *tstate; in run_interpreter()
|
/external/python/cpython3/Modules/ |
D | faulthandler.c | 204 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.c | 768 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/ |
D | init.rst | 367 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 …]
|