gh-104530: Enable native Win32 condition variables by default (GH-104531)
This commit is contained in:
@@ -2488,7 +2488,17 @@ PyGILState_Check(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return (tstate == gilstate_tss_get(runtime));
|
||||
#ifdef MS_WINDOWS
|
||||
int err = GetLastError();
|
||||
#endif
|
||||
|
||||
PyThreadState *tcur = gilstate_tss_get(runtime);
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
SetLastError(err);
|
||||
#endif
|
||||
|
||||
return (tstate == tcur);
|
||||
}
|
||||
|
||||
PyGILState_STATE
|
||||
|
||||
Reference in New Issue
Block a user