summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_function.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2020-01-16 17:11:13 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2020-01-16 17:47:36 +0100
commitd68b9c20d69e037cff60260fe2e1fb198c62bba4 (patch)
tree716143844fa350e35d46f595c6fabf3ee1b73313 /modules/gdscript/gdscript_function.cpp
parentf2d45676c949782febd59cdb25674d2058291a52 (diff)
Mono/C#: Script interface calls now attach the current thread
Added guards to all C# script interface calls to attach the current thread for the current scope if the thread is not already attached. This is far from ideal, as attaching the thread is not cheap and all managed thread local storage is lost when we detach the thread at the end of the calls. However, it's the best we can do for now to avoid crashing when an unattached thread tries to interact with C# code.
Diffstat (limited to 'modules/gdscript/gdscript_function.cpp')
0 files changed, 0 insertions, 0 deletions