Lines Matching refs:tstate
855 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp); in local_clear() local
856 for(; tstate; tstate = PyThreadState_Next(tstate)) { in local_clear()
857 if (tstate->dict == NULL) { in local_clear()
860 PyObject *v = _PyDict_Pop(tstate->dict, self->key, Py_None); in local_clear()
1063 PyThreadState *tstate; member
1082 PyThreadState *tstate; in thread_run() local
1084 tstate = boot->tstate; in thread_run()
1085 tstate->thread_id = PyThread_get_thread_ident(); in thread_run()
1086 _PyThreadState_Init(tstate); in thread_run()
1087 PyEval_AcquireThread(tstate); in thread_run()
1088 tstate->interp->num_threads++; in thread_run()
1104 tstate->interp->num_threads--; in thread_run()
1105 PyThreadState_Clear(tstate); in thread_run()
1106 _PyThreadState_DeleteCurrent(tstate); in thread_run()
1150 boot->tstate = _PyThreadState_Prealloc(boot->interp); in thread_PyThread_start_new_thread()
1151 if (boot->tstate == NULL) { in thread_PyThread_start_new_thread()
1163 PyThreadState_Clear(boot->tstate); in thread_PyThread_start_new_thread()
1318 PyThreadState *tstate = PyThreadState_Get(); in thread__set_sentinel() local
1321 if (tstate->on_delete_data != NULL) { in thread__set_sentinel()
1324 assert(tstate->on_delete == &release_sentinel); in thread__set_sentinel()
1325 wr = (PyObject *) tstate->on_delete_data; in thread__set_sentinel()
1326 tstate->on_delete = NULL; in thread__set_sentinel()
1327 tstate->on_delete_data = NULL; in thread__set_sentinel()
1340 tstate->on_delete_data = (void *) wr; in thread__set_sentinel()
1341 tstate->on_delete = &release_sentinel; in thread__set_sentinel()