Merge pull request #34380 from akien-mga/mono-threads-suspend-windows

Mono: Enable threads suspend workaround on Windows
This commit is contained in:
Rémi Verschelde 2019-12-16 21:08:29 +01:00 committed by GitHub
commit 3aa46a58cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ void GDMono::initialize() {
} }
#endif #endif
#if !defined(WINDOWS_ENABLED) && !defined(NO_MONO_THREADS_SUSPEND_WORKAROUND) #if !defined(NO_MONO_THREADS_SUSPEND_WORKAROUND)
// FIXME: Temporary workaround. See: https://github.com/godotengine/godot/issues/29812 // FIXME: Temporary workaround. See: https://github.com/godotengine/godot/issues/29812
if (!OS::get_singleton()->has_environment("MONO_THREADS_SUSPEND")) { if (!OS::get_singleton()->has_environment("MONO_THREADS_SUSPEND")) {
OS::get_singleton()->set_environment("MONO_THREADS_SUSPEND", "preemptive"); OS::get_singleton()->set_environment("MONO_THREADS_SUSPEND", "preemptive");