Lines Matching defs:boot
1066 thread_bootstate_free(struct bootstate *boot)
1068 Py_DECREF(boot->func);
1069 Py_DECREF(boot->args);
1070 Py_XDECREF(boot->kwargs);
1071 PyMem_Free(boot);
1078 struct bootstate *boot = (struct bootstate *) boot_raw;
1081 tstate = boot->tstate;
1092 PyObject *res = PyObject_Call(boot->func, boot->args, boot->kwargs);
1098 _PyErr_WriteUnraisableMsg("in thread started by", boot->func);
1105 thread_bootstate_free(boot);
1147 struct bootstate *boot = PyMem_NEW(struct bootstate, 1);
1148 if (boot == NULL) {
1151 boot->interp = _PyInterpreterState_GET();
1152 boot->tstate = _PyThreadState_Prealloc(boot->interp);
1153 if (boot->tstate == NULL) {
1154 PyMem_Free(boot);
1157 boot->runtime = runtime;
1158 boot->func = Py_NewRef(func);
1159 boot->args = Py_NewRef(args);
1160 boot->kwargs = Py_XNewRef(kwargs);
1162 unsigned long ident = PyThread_start_new_thread(thread_run, (void*) boot);
1165 PyThreadState_Clear(boot->tstate);
1166 thread_bootstate_free(boot);