xbt_dynar_foreach(processes, cursor, process) {
old_context = my_current_context;
my_current_context = SIMIX_process_get_context(process);
smx_ctx_java_resume(my_current_context);
my_current_context = old_context;
}
xbt_dynar_foreach(processes, cursor, process) {
old_context = my_current_context;
my_current_context = SIMIX_process_get_context(process);
smx_ctx_java_resume(my_current_context);
my_current_context = old_context;
}