FACT++  1.0
JNIEXPORT jint JNICALL JNI_OnUnLoad ( JNIEnv *  env,
void *  reserved 
)

Definition at line 312 of file dim_jni.c.

References CompletionHandler, DBGx, dim_Dbg_MODULE, Java_dim_Native_init(), NativeDataDecoder, NativeDataEncoder, NativeDataMemory, NativeDimCltError, NativeDimExit, NativeDimSrvError, NativeDimTimer, ourNativeDimCltError, ourNativeDimExit, ourNativeDimSrvError, ourNativeMemoryObject, ReceiveSynchronizer, and SendSynchronizer.

Referenced by Java_dim_Native_stop().

313 {
314 // static JNIEnv* env;
315 
316 // DBGe(dim_Dbg_MODULE) ; /* trap only, report on exit */
317 
318  if(reserved){}
319 // (*jvm)->AttachCurrentThread(jvm, (void *)&env, NULL);
320  (*env)->DeleteGlobalRef(env, NativeDataMemory);
321  (*env)->DeleteGlobalRef(env, SendSynchronizer);
322  (*env)->DeleteGlobalRef(env, ReceiveSynchronizer);
323  (*env)->DeleteGlobalRef(env, CompletionHandler);
324  (*env)->DeleteGlobalRef(env, NativeDataDecoder);
325  (*env)->DeleteGlobalRef(env, NativeDataEncoder);
326  (*env)->DeleteGlobalRef(env, ourNativeMemoryObject);
327 
328  (*env)->DeleteGlobalRef(env, NativeDimTimer);
329  (*env)->DeleteGlobalRef(env, NativeDimSrvError);
330  (*env)->DeleteGlobalRef(env, ourNativeDimSrvError);
331  (*env)->DeleteGlobalRef(env, NativeDimCltError);
332  (*env)->DeleteGlobalRef(env, ourNativeDimCltError);
333  (*env)->DeleteGlobalRef(env, NativeDimExit);
334  (*env)->DeleteGlobalRef(env, ourNativeDimExit);
335 
336  DBGx(dim_Dbg_MODULE) printf("DimJNI: DLL unloaded\n");
337  return(0);
338 }
jobject ourNativeDimExit
Definition: dim_jni.c:130
jobject ourNativeDimCltError
Definition: dim_jni.c:125
jclass NativeDimSrvError
Definition: dim_jni.c:117
jobject ourNativeDimSrvError
Definition: dim_jni.c:120
jclass ReceiveSynchronizer
Definition: dim_jni.c:100
jclass NativeDataDecoder
Definition: dim_jni.c:108
#define dim_Dbg_MODULE
Definition: dim_jni.h:30
Definition: dim.h:530
jclass NativeDimCltError
Definition: dim_jni.c:122
jclass CompletionHandler
Definition: dim_jni.c:105
jobject ourNativeMemoryObject
Definition: dim_jni.c:132
#define DBGx(test)
Definition: dim_jni.c:66
jclass NativeDimExit
Definition: dim_jni.c:127
jclass NativeDataMemory
Definition: dim_jni.c:87
jclass SendSynchronizer
Definition: dim_jni.c:95
jclass NativeDataEncoder
Definition: dim_jni.c:111
jclass NativeDimTimer
Definition: dim_jni.c:114

+ Here is the call graph for this function:

+ Here is the caller graph for this function: