• Home
  • Raw
  • Download

Lines Matching refs:PyThreadState

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()
430 PyThreadState *tstate = _PyThreadState_Swap(gilstate, NULL); in _PyInterpreterState_DeleteExceptMain()
469 PyThreadState *tstate = _PyThreadState_GET(); in PyInterpreterState_Get()
570 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp); in _PyInterpreterState_IDDecref()
572 PyThreadState *save_tstate = _PyThreadState_Swap(gilstate, tstate); in _PyInterpreterState_IDDecref()
613 static PyThreadState *
617 PyThreadState *tstate = (PyThreadState *)PyMem_RawMalloc(sizeof(PyThreadState)); in new_threadstate()
681 PyThreadState *
687 PyThreadState *
694 _PyThreadState_Init(PyThreadState *tstate) in _PyThreadState_Init()
719 _PyState_AddModule(PyThreadState *tstate, PyObject* module, struct PyModuleDef* def) in _PyState_AddModule()
759 PyThreadState *tstate = _PyThreadState_GET(); in PyState_AddModule()
775 PyThreadState *tstate = _PyThreadState_GET(); in PyState_RemoveModule()
830 PyThreadState_Clear(PyThreadState *tstate) in PyThreadState_Clear()
883 tstate_delete_common(PyThreadState *tstate, in tstate_delete_common()
914 _PyThreadState_Delete(PyThreadState *tstate, int check_current) in _PyThreadState_Delete()
928 PyThreadState_Delete(PyThreadState *tstate) in PyThreadState_Delete()
935 _PyThreadState_DeleteCurrent(PyThreadState *tstate) in _PyThreadState_DeleteCurrent()
949 PyThreadState *tstate = _PyRuntimeGILState_GetThreadState(gilstate); in PyThreadState_DeleteCurrent()
962 _PyThreadState_DeleteExcept(_PyRuntimeState *runtime, PyThreadState *tstate) in _PyThreadState_DeleteExcept()
970 PyThreadState *list = interp->tstate_head; in _PyThreadState_DeleteExcept()
987 PyThreadState *p, *next; in _PyThreadState_DeleteExcept()
997 PyThreadState*
1004 PyThreadState *
1011 PyThreadState *
1014 PyThreadState *tstate = _PyThreadState_GET(); in PyThreadState_Get()
1020 PyThreadState *
1021 _PyThreadState_Swap(struct _gilstate_runtime_state *gilstate, PyThreadState *newts) in _PyThreadState_Swap()
1024 PyThreadState *oldts = _PyThreadState_GetTSS(); in _PyThreadState_Swap()
1026 PyThreadState *oldts = _PyRuntimeGILState_GetThreadState(gilstate); in _PyThreadState_Swap()
1040 PyThreadState *check = _PyGILState_GetThisThreadState(gilstate); in _PyThreadState_Swap()
1052 PyThreadState *
1053 PyThreadState_Swap(PyThreadState *newts) in PyThreadState_Swap()
1065 _PyThreadState_GetDict(PyThreadState *tstate) in _PyThreadState_GetDict()
1081 PyThreadState *tstate = _PyThreadState_GET(); in PyThreadState_GetDict()
1090 PyThreadState_GetInterpreter(PyThreadState *tstate) in PyThreadState_GetInterpreter()
1098 PyThreadState_GetFrame(PyThreadState *tstate) in PyThreadState_GetFrame()
1108 PyThreadState_GetID(PyThreadState *tstate) in PyThreadState_GetID()
1136 for (PyThreadState *tstate = interp->tstate_head; tstate != NULL; tstate = tstate->next) { in PyThreadState_SetAsyncExc()
1182 PyThreadState *
1187 PyThreadState *
1188 PyThreadState_Next(PyThreadState *tstate) { in PyThreadState_Next()
1200 PyThreadState *tstate = _PyThreadState_GET(); in _PyThread_CurrentFrames()
1220 PyThreadState *t; in _PyThread_CurrentFrames()
1250 PyThreadState *tstate = _PyThreadState_GET(); in _PyThread_CurrentExceptions()
1273 PyThreadState *t; in _PyThread_CurrentExceptions()
1321 PyThreadState_IsCurrent(PyThreadState *tstate) in PyThreadState_IsCurrent()
1347 _PyGILState_SetTstate(PyThreadState *tstate) in _PyGILState_SetTstate()
1392 PyThreadState *tstate = _PyGILState_GetThisThreadState(gilstate); in _PyGILState_Reinit()
1416 _PyGILState_NoteThreadState(struct _gilstate_runtime_state *gilstate, PyThreadState* tstate) in _PyGILState_NoteThreadState()
1448 static PyThreadState *
1453 return (PyThreadState *)PyThread_tss_get(&gilstate->autoTSSkey); in _PyGILState_GetThisThreadState()
1456 PyThreadState *
1474 PyThreadState *tstate = _PyRuntimeGILState_GetThreadState(gilstate); in PyGILState_Check()
1500 PyThreadState *tcur = (PyThreadState *)PyThread_tss_get(&gilstate->autoTSSkey); in PyGILState_Ensure()
1536 PyThreadState *tstate = PyThread_tss_get(&runtime->gilstate.autoTSSkey); in PyGILState_Release()
1608 _check_xidata(PyThreadState *tstate, _PyCrossInterpreterData *data) in _check_xidata()
1633 PyThreadState *tstate = PyThreadState_Get(); in _PyObject_GetCrossInterpreterData()
1682 PyThreadState *save_tstate = NULL; in _call_in_interpreter()
1685 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp); in _call_in_interpreter()
1971 PyThreadState *tstate = _PyThreadState_GET(); in _Py_GetConfig()