//-------------------------------------------------
/*
- The stored thread state is set by PyThraedState_Swap().
+ The stored thread state is set by PyThreadState_Swap().
- For each of these functions, the GIL mus be held by the current thread.
+ For each of these functions, the GIL must be held by the current thread.
*/
static inline PyThreadState *
current_tss_clear(runtime);
}
- // We leave thread_id and native_thraed_id alone
+ // We leave thread_id and native_thread_id alone
// since they can be useful for debugging.
// Check the `_status` field to know if these values
// are still valid.
tstate->exc_info = &tstate->exc_state;
// PyGILState_Release must not try to delete this thread state.
- // This is cleared when PyGILState_Ensure() creates the thread sate.
+ // This is cleared when PyGILState_Ensure() creates the thread state.
tstate->gilstate_counter = 1;
tstate->cframe = &tstate->root_cframe;
}
// We keep this around for (accidental) stable ABI compatibility.
-// Realisically, no extensions are using it.
+// Realistically, no extensions are using it.
void
_PyThreadState_Init(PyThreadState *tstate)
{