README.android
changeset 6354 17840f487124
parent 6330 0fa55ca2efdd
child 6387 58f0fb54bf88
     1.1 --- a/README.android	Thu Jul 05 12:16:44 2012 -0400
     1.2 +++ b/README.android	Mon Jul 09 18:08:06 2012 -0300
     1.3 @@ -92,6 +92,20 @@
     1.4  under iOS, if the OS can not restore your GL context it will just kill your app)
     1.5  
     1.6  ================================================================================
     1.7 + Threads and the JAVA VM
     1.8 +================================================================================
     1.9 +
    1.10 +For a quick tour on how Linux native threads interoperate with the JAVA VM, take
    1.11 +a look here: http://developer.android.com/guide/practices/jni.html
    1.12 +If you want to use threads in your SDL app, it's strongly recommended that you
    1.13 +do so by creating them using SDL functions. This way, the required attach/detach
    1.14 +handling is managed by SDL automagically. If you have threads created by other
    1.15 +means and they make calls to SDL functions, make sure that you call
    1.16 +Android_JNI_SetupThread before doing anything else otherwise SDL will attach
    1.17 +your thread automatically anyway (when you make an SDL call), but it'll never
    1.18 +detach it.
    1.19 +
    1.20 +================================================================================
    1.21   Additional documentation
    1.22  ================================================================================
    1.23