开发者

JNI calling JVM functions/events from native code?

开发者 https://www.devze.com 2023-02-20 02:06 出处:网络
I am wondering if it is possible for native functions to signal Java functions/events? Basically I think I will run some C++ code on a separate thread and do stuff like handling SIP and then for exam

I am wondering if it is possible for native functions to signal Java functions/events?

Basically I think I will run some C++ code on a separate thread and do stuff like handling SIP and then for example if the native thread detects a开发者_C百科n incomming call, being able to signal the JVM somehow. I am not sure how communication like this is done in JNI.

Any ideas?


There are several good articles around, like this one. Here's a Developer Works article that looks good too.

0

精彩评论

暂无评论...
验证码 换一张
取 消