Windows: Call SetThreadStackGuarantee for all threads, not just main thread

This commit is contained in:
Jonathan G Rennison
2021-03-12 17:30:40 +00:00
parent 909e343f40
commit f53697ce76
6 changed files with 35 additions and 6 deletions

View File

@@ -256,6 +256,7 @@ int CDECL main(int argc, char *argv[])
argc = 1;
}
#endif
PerThreadSetupInit();
CrashLog::InitialiseCrashLog();
SetRandomSeed(time(nullptr));
@@ -348,6 +349,10 @@ void SetSelfAsMainThread()
#endif
}
void PerThreadSetup() { }
void PerThreadSetupInit() { }
bool IsMainThread()
{
#if !defined(NO_THREADS)