blob: 91a0aa74df3e1a844dc95f6494058e222d42fae1 [file] [log] [blame]
package ncai.funcs;
/**
* @author Petr Ivanov
*
*/
public class GetFrameCount03 extends Thread{
public native void TestFunction();
public native void TestFunction1();
public static native boolean stopsignal();
static boolean NoLibrary = false;
static {
try{
System.loadLibrary("GetFrameCount03");
}
catch(Throwable e){
NoLibrary = true;
}
}
GetFrameCount03(String name)
{
super(name);
}
static public void main(String args[]) {
if(NoLibrary) return;
new GetFrameCount03("java_thread").start();
special_method();
return;
}
static public void special_method() {
/*
* Transfer control to native part.
*/
try {
throw new InterruptedException();
} catch (Throwable tex) { }
return;
}
public void run() {
System.out.println("thread - java run\n");
TestFunction();
}
}