diff options
Diffstat (limited to 'src/thread/Thread.cxx')
-rw-r--r-- | src/thread/Thread.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/thread/Thread.cxx b/src/thread/Thread.cxx index 9016680e4..2932d478f 100644 --- a/src/thread/Thread.cxx +++ b/src/thread/Thread.cxx @@ -21,6 +21,10 @@ #include "Thread.hxx" #include "util/Error.hxx" +#ifdef ANDROID +#include "java/Global.hxx" +#endif + bool Thread::Start(void (*_f)(void *ctx), void *_ctx, Error &error) { @@ -102,6 +106,11 @@ Thread::ThreadProc(void *ctx) #endif thread.f(thread.ctx); + +#ifdef ANDROID + Java::DetachCurrentThread(); +#endif + return nullptr; } |