diff options
| author | Juan Linietsky | 2016-06-25 10:40:33 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-06-25 10:41:23 -0300 |
| commit | 8dac3bf3b10406d05c4d520e81082e490e3b76ff (patch) | |
| tree | fa7cd3a9a8f5758855969bf8488b6cd141eb1bbc /core/script_language.cpp | |
| parent | c931ed976b5952d7f0972f4c8c4efe279db456ac (diff) | |
| download | godot-8dac3bf3b10406d05c4d520e81082e490e3b76ff.tar.gz godot-8dac3bf3b10406d05c4d520e81082e490e3b76ff.tar.zst godot-8dac3bf3b10406d05c4d520e81082e490e3b76ff.zip | |
Diffstat (limited to 'core/script_language.cpp')
| -rw-r--r-- | core/script_language.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/script_language.cpp b/core/script_language.cpp index 68a694398..466242d39 100644 --- a/core/script_language.cpp +++ b/core/script_language.cpp @@ -102,6 +102,22 @@ bool ScriptServer::is_reload_scripts_on_save_enabled() { return reload_scripts_on_save; } +void ScriptServer::thread_enter() { + + for(int i=0;i<_language_count;i++) { + _languages[i]->thread_enter(); + } +} + +void ScriptServer::thread_exit() { + + for(int i=0;i<_language_count;i++) { + _languages[i]->thread_exit(); + } + +} + + void ScriptInstance::get_property_state(List<Pair<StringName, Variant> > &state) { List<PropertyInfo> pinfo; |
