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

Make languages' thread enter/exit more resilient

This commit is contained in:
Pedro J. Estébanez
2024-09-10 11:29:54 +02:00
parent 2d1dd41ef5
commit c8acf561ef
4 changed files with 28 additions and 8 deletions

View File

@@ -54,6 +54,7 @@ class ScriptServer {
static int _language_count;
static bool languages_ready;
static Mutex languages_mutex;
static thread_local bool thread_entered;
static bool scripting_enabled;
static bool reload_scripts_on_save;
@@ -101,6 +102,7 @@ public:
static void init_languages();
static void finish_languages();
static bool are_languages_initialized();
static bool thread_is_entered();
};
class PlaceHolderScriptInstance;