FACT++  1.0
void callServerExitHandler ( int  code)

Definition at line 950 of file dim_jni.c.

References dim_jni_attachThread(), NativeDimExit_exitHandler, ourNativeDimExit, and theJavaVM.

Referenced by server_exit_callback().

951 {
952 // jobject aDimTimer = *_aDimTimer;
953  JNIEnv* env;
954  int doit;
955 
956  doit = dim_jni_attachThread(&env);
957 // (*theJavaVM)->AttachCurrentThread(theJavaVM, (void *)&env, NULL);
958  (*env)->CallVoidMethod(env, ourNativeDimExit, NativeDimExit_exitHandler,
959  (jint)code);
960  if(doit)
961  (*theJavaVM)->DetachCurrentThread(theJavaVM);
962  return;
963 }
JavaVM * theJavaVM
Definition: dim_jni.c:85
jobject ourNativeDimExit
Definition: dim_jni.c:130
jmethodID NativeDimExit_exitHandler
Definition: dim_jni.c:128
int dim_jni_attachThread(JNIEnv **env)
Definition: dim_jni.c:171

+ Here is the call graph for this function:

+ Here is the caller graph for this function: