summaryrefslogtreecommitdiffstats
path: root/core/object/script_language.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-11 12:35:07 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-11 12:35:07 +0200
commit658b8a8704cba0b9119f63e26250095206e56b43 (patch)
treeb081144c02bd117512a98a41ee5f8ee3c80af1e4 /core/object/script_language.h
parent63021b0d91584f71be40e27c5defb53aabe7815a (diff)
parentc8acf561ef0c66c03d9e15e46e753c98ab485050 (diff)
downloadredot-engine-658b8a8704cba0b9119f63e26250095206e56b43.tar.gz
Merge pull request #96760 from RandomShaper/wtp_langs_exit_thread
Make use of languages' thread enter/exit more correct
Diffstat (limited to 'core/object/script_language.h')
-rw-r--r--core/object/script_language.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/object/script_language.h b/core/object/script_language.h
index e38c344ae5..d9e2ab1d3c 100644
--- a/core/object/script_language.h
+++ b/core/object/script_language.h
@@ -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;