I am wondering is it possible to notify( notify()
) a java object with native code?
For example let's say we have a thread in java which is waiting for a signal as below.
void _do_something() throws Exception{
synchronized(__lock_){
__lock_.wait();
}
}
Then is it possible to notify the __lock_
object from a native code?!
Should I pass the __lock_
object to the c code? so how and how C code call the notify()
method.
Any help is appreciated.
Thanks in advance.