Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't need private files without this command line
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 16 Feb 2011 14:12:30 +0000 (14:12 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 16 Feb 2011 14:12:30 +0000 (14:12 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/simgrid-java@9642 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/smx_context_java.c

index 586531d..bd56c84 100644 (file)
@@ -10,7 +10,6 @@
 #include <xbt/function_types.h>
 #include <simix/simix.h>
 #include "smx_context_java.h"
 #include <xbt/function_types.h>
 #include <simix/simix.h>
 #include "smx_context_java.h"
-#include "simix/process_private.h"
 #include "xbt/dynar.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(jmsg, bindings, "MSG for Java(TM)");
 #include "xbt/dynar.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(jmsg, bindings, "MSG for Java(TM)");
@@ -162,7 +161,7 @@ static void smx_ctx_java_runall(xbt_dynar_t processes)
 
   xbt_dynar_foreach(processes, cursor, process) {
     old_context = my_current_context;
 
   xbt_dynar_foreach(processes, cursor, process) {
     old_context = my_current_context;
-    my_current_context = process->context;
+    my_current_context = SIMIX_process_get_context(process);
     smx_ctx_java_resume(my_current_context);
     my_current_context = old_context;
   }
     smx_ctx_java_resume(my_current_context);
     my_current_context = old_context;
   }