Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finally the Java interface is working again! (It was broken because of
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 17 Aug 2009 14:41:18 +0000 (14:41 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 17 Aug 2009 14:41:18 +0000 (14:41 +0000)
me, sorry :S)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6579 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/java/jmsg.c
src/msg/global.c
src/simix/smx_process.c

index 522b77f..cb01fa0 100644 (file)
@@ -970,10 +970,9 @@ JNIEXPORT void JNICALL
 
   /* Run everything */
   if (MSG_OK != MSG_main()) {
-    CRITICAL0("We are here!");
     jxbt_throw_native(env, xbt_strdup("MSG_main() failed"));
   }
-  INFO0
+  DEBUG0
     ("MSG_main finished. Bail out before cleanup since there is a bug in this part.");
 
   DEBUG0("Clean java world");
@@ -985,13 +984,11 @@ JNIEXPORT void JNICALL
       jhost_unref(env, jhost);
   }
 
-  INFO0("Clean native world");
+  DEBUG0("Clean native world");
   /* cleanup native stuff */
   if (MSG_OK != MSG_clean()){
-    CRITICAL0("We are there!");
     jxbt_throw_native(env, xbt_strdup("MSG_main() failed"));
   }
-  INFO0("All good");
 }
 
 JNIEXPORT jint JNICALL
index 431996b..3870712 100644 (file)
@@ -229,8 +229,6 @@ MSG_error_t MSG_clean(void)
 
   SIMIX_clean();
 
-
-
   return MSG_OK;
 }
 
index db50d01..f6e37a7 100644 (file)
@@ -162,7 +162,10 @@ void SIMIX_jprocess_create(const char *name, smx_host_t host,
   process->smx_host = host;
   process->mutex = NULL;
   process->cond = NULL;
-  process->context = SIMIX_context_new(jprocess, 0, NULL, NULL, NULL);
+  process->context = SIMIX_context_new(jprocess, 0, NULL, 
+                                       simix_global->cleanup_process_function,
+                                       process);
+
   process->data = data;
 
   /* Add the process to it's host process list */