Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS
This commit is contained in:
parent
c931ed976b
commit
8dac3bf3b1
7 changed files with 49 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue