* Add Process.setAutoRestart: handling of process restart when failed
host comes back.
* Add Process.getProperty, Host.getProperty, Host.getProperty: allows
- you to retrieve the properties of the processes/hosts
+ you to retrieve the properties of the processes/hosts
+ * Deprecate Msg.clean(): you can just forget about it now.
* New context factory based on Coroutines. It mandates a modified JVM
but then, the simulations run about five times faster, and there is
/* Execute the simulation */
Msg.run();
- Msg.clean();
}
}
\ No newline at end of file
/* execute the simulation. */
Msg.run();
- Msg.clean();
}
}
*/
public final static native void run() ;
- /**
- * Cleanup the MSG simulation.
- *
- * This function is only useful if you want to chain the simulations within
- * the same environment. But actually, it's not sure at all that cleaning the
- * JVM is faster than restarting a new one, so it's probable that using this
- * function is not a brilliant idea. Do so at own risk.
- *
- * @see MSG_clean
- */
- public final static native void clean();
-
+ /** This function is useless nowadays, just stop calling it. */
+ @Deprecated
+ public final static void clean(){}
/**
* The native implemented method to create the environment of the simulation.
xbt_dynar_free(&hosts);
XBT_INFO("Clean native world");
}
-JNIEXPORT void JNICALL
- JNICALL Java_org_simgrid_msg_Msg_clean(JNIEnv * env, jclass cls)
-{
- /* cleanup native stuff. Calling it is ... useless since leaking memory at the end of the simulation is a non-issue */
- msg_error_t rv = MSG_OK != MSG_clean();
- jxbt_check_res("MSG_clean()", rv, MSG_OK,
- bprintf
- ("unexpected error : MSG_clean() failed .. please report this bug "));
-}
JNIEXPORT void JNICALL
Java_org_simgrid_msg_Msg_createEnvironment(JNIEnv * env, jclass cls,
*/
JNIEXPORT void JNICALL
JNICALL Java_org_simgrid_msg_Msg_run(JNIEnv * env, jclass cls);
-/**
- * Class org_simgrid_msg_Msg
- * Method clean
- */
-JNIEXPORT void JNICALL
- JNICALL Java_org_simgrid_msg_Msg_clean(JNIEnv * env, jclass cls);
JNIEXPORT void JNICALL
Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs);