1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

WorkerThreadPool: Add safety point between languages finished and pool termination

This commit is contained in:
Pedro J. Estébanez
2024-09-16 11:51:57 +02:00
parent 2a483fa9ba
commit 5d371e3378
3 changed files with 98 additions and 20 deletions

View File

@@ -4501,6 +4501,8 @@ void Main::cleanup(bool p_force) {
ResourceLoader::clear_translation_remaps();
ResourceLoader::clear_path_remaps();
WorkerThreadPool::get_singleton()->exit_languages_threads();
ScriptServer::finish_languages();
// Sync pending commands that may have been queued from a different thread during ScriptServer finalization