Lines Matching refs:tstate
859 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp);
861 while (tstate) {
862 if (tstate->dict) {
863 PyObject *v = _PyDict_Pop(tstate->dict, self->key, Py_None);
872 tstate = PyThreadState_Next(tstate);
1060 PyThreadState *tstate;
1079 PyThreadState *tstate;
1081 tstate = boot->tstate;
1082 tstate->thread_id = PyThread_get_thread_ident();
1084 tstate->native_thread_id = PyThread_get_thread_native_id();
1086 tstate->native_thread_id = 0;
1088 _PyThreadState_SetCurrent(tstate);
1089 PyEval_AcquireThread(tstate);
1090 tstate->interp->threads.count++;
1106 tstate->interp->threads.count--;
1107 PyThreadState_Clear(tstate);
1108 _PyThreadState_DeleteCurrent(tstate);
1152 boot->tstate = _PyThreadState_Prealloc(boot->interp);
1153 if (boot->tstate == NULL) {
1165 PyThreadState_Clear(boot->tstate);
1320 PyThreadState *tstate = _PyThreadState_GET();
1323 if (tstate->on_delete_data != NULL) {
1326 assert(tstate->on_delete == &release_sentinel);
1327 wr = (PyObject *) tstate->on_delete_data;
1328 tstate->on_delete = NULL;
1329 tstate->on_delete_data = NULL;
1342 tstate->on_delete_data = (void *) wr;
1343 tstate->on_delete = &release_sentinel;
1513 PyThreadState *tstate = _PyThreadState_GET();
1514 PyObject *file = _PySys_GetAttr(tstate, &_Py_ID(stderr));