最終更新:2016-10-07 (金) 14:49:09 (2730d)
Android NDK/スレッド
Top / Android NDK / スレッド
メモ
- pthread_create
- JavaVM
- JNIEnv
- AttachCurrentThread
- AttachCurrentThreadAsDaemon?
- DetachCurrentThread?
- pthread_key_create
- pthread_setspecific?
- JNI_OnLoad
メモ
- a thread started with pthread_create can be attached with the JNI AttachCurrentThread or AttachCurrentThreadAsDaemon? functions.
- JNIEnvオブジェクトはスレッド毎に管理されている。
- NDKで別スレッドを作成した場合、そのスレッド用のJNIEnvオブジェクトを準備する必要がある。
- The JNIEnv is used for thread-local storage (TLS). For this reason, you cannot share a JNIEnv between threads.