On Feb 1, 3:11 am, GoG <
guillaume.au...@gmail.com> wrote:
> I have a little question regarding JNI layer.
> I use Swig (2.0.1) to generate my wrappers
> and I was wondering, which call is prefered
> for Dalvik integration :
>
> AttachCurrentThreadAsDaemon() OR AttachCurrentThread() ?
The VM shuts down when all non-daemon threads have exited. Attaching
a thread as a daemon thread just means that the VM could exit without
having to wait for your thread to detach first.
Android apps don't really "exit", so it's sort of a non-issue.
See also java.lang.Thread.setDaemon(boolean on).