Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java とネイティブ (C/C++) コードの両方を持つアプリケーションがあります。Java 側にa を格納する必要がありpthread_tます。そのための Java と JNI の型は何でしょうか?
pthread_t
Java にキャストしvoid*て格納しますlong。
void*
long
pthread_t通常、システムに依存する へのポインタstructです。32 ビット システムでは32 ビット (Java int)、64 ビット システムでは 64 ビット (Java long) になります。
struct
int