1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

uses the global thread to protect the instacnes map in GDScript, closes #4615

This commit is contained in:
Juan Linietsky
2017-01-10 19:02:52 -03:00
parent f3f4a11cfb
commit 80b733a33a
2 changed files with 45 additions and 3 deletions

View File

@@ -294,11 +294,13 @@ class GDScriptLanguage : public ScriptLanguage {
void _add_global(const StringName& p_name,const Variant& p_value);
friend class GDInstance;
Mutex *lock;
friend class GDScript;
SelfList<GDScript>::List script_list;