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 /platform/android/thread_jandroid.cpp | |
| parent | c931ed976b5952d7f0972f4c8c4efe279db456ac (diff) | |
| download | godot-8dac3bf3b10406d05c4d520e81082e490e3b76ff.tar.gz godot-8dac3bf3b10406d05c4d520e81082e490e3b76ff.tar.zst godot-8dac3bf3b10406d05c4d520e81082e490e3b76ff.zip | |
Diffstat (limited to 'platform/android/thread_jandroid.cpp')
| -rw-r--r-- | platform/android/thread_jandroid.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/android/thread_jandroid.cpp b/platform/android/thread_jandroid.cpp index 1425e23c7..61ee23758 100644 --- a/platform/android/thread_jandroid.cpp +++ b/platform/android/thread_jandroid.cpp @@ -29,6 +29,7 @@ #include "thread_jandroid.h" #include "os/memory.h" +#include "script_language.h" Thread::ID ThreadAndroid::get_ID() const { @@ -44,8 +45,10 @@ void *ThreadAndroid::thread_callback(void *userdata) { ThreadAndroid *t=reinterpret_cast<ThreadAndroid*>(userdata); setup_thread(); + ScriptServer::thread_enter(); //scripts may need to attach a stack t->id=(ID)pthread_self(); t->callback(t->user); + ScriptServer::thread_exit(); return NULL; } |
