I spend about hour to find out why manually created thread with pthreads (not SDL_CreateThread) library is crashing after reading files from apk.
Why SDL doesn’t associate JNIENV automatically with current thread when Android_JNI_GetEnv() was called?
please review this patch, it makes all user created threads compatible with SDL
I moved pthread_setspecific(mThreadKey, (void*) env) from Android_JNI_SetupThread to Android_JNI_GetEnv
I spend about hour to find out why manually created thread with pthreads
(not SDL_CreateThread) library is crashing after reading files from apk.
Why SDL doesn’t associate JNIENV automatically with current thread when
Android_JNI_GetEnv() was called?
please review this patch, it makes all user created threads compatible
with SDL
I moved pthread_setspecific(mThreadKey, (void*) env) from
Android_JNI_SetupThread to Android_JNI_GetEnv