mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Make languages bookkeeping thread-safe
This commit is contained in:
@@ -52,9 +52,11 @@ class ScriptServer {
|
||||
|
||||
static ScriptLanguage *_languages[MAX_LANGUAGES];
|
||||
static int _language_count;
|
||||
static bool languages_ready;
|
||||
static Mutex languages_mutex;
|
||||
|
||||
static bool scripting_enabled;
|
||||
static bool reload_scripts_on_save;
|
||||
static SafeFlag languages_finished; // Used until GH-76581 is fixed properly.
|
||||
|
||||
struct GlobalScriptClass {
|
||||
StringName language;
|
||||
@@ -98,8 +100,7 @@ public:
|
||||
|
||||
static void init_languages();
|
||||
static void finish_languages();
|
||||
|
||||
static bool are_languages_finished() { return languages_finished.is_set(); }
|
||||
static bool are_languages_initialized();
|
||||
};
|
||||
|
||||
class PlaceHolderScriptInstance;
|
||||
|
||||
Reference in New Issue
Block a user