/**
* Suspends the process by suspending the task on which it was
* waiting for the completion.
- *
*/
- public native void pause();
+ public native void suspend();
+ /**
+ * Suspends the process by suspending the task on which it was
+ * waiting for the completion.
+ * DEPRECATED: use suspend instead.
+ */
+ @Deprecated
+ public void pause() {
+ suspend();
+ }
/**
* Resumes a suspended process by resuming the task on which it was
* waiting for the completion.
- *
- *
+ * DEPRECATED: use resume instead.
*/
- public native void restart();
+ @Deprecated
+ public void restart() {
+ resume();
+ }
+ /**
+ * Resumes a suspended process by resuming the task on which it was
+ * waiting for the completion.
+ */
+ public native void resume();
/**
* Tests if a process is suspended.
*
}
JNIEXPORT void JNICALL
-Java_org_simgrid_msg_Process_pause(JNIEnv * env,
+Java_org_simgrid_msg_Process_suspend(JNIEnv * env,
jobject jprocess)
{
m_process_t process = jprocess_to_native_process(jprocess, env);
}
JNIEXPORT void JNICALL
-Java_org_simgrid_msg_Process_restart(JNIEnv * env,
+Java_org_simgrid_msg_Process_resume(JNIEnv * env,
jobject jprocess)
{
m_process_t process = jprocess_to_native_process(jprocess, env);
(JNIEnv *, jclass);
/*
* Class org_simgrid_msg_Process
- * Method pause
+ * Method suspend
* Signature (Lorg/simgrid/msg/Process;)V
*/
JNIEXPORT void JNICALL
-Java_org_simgrid_msg_Process_pause(JNIEnv * env,
+Java_org_simgrid_msg_Process_suspend(JNIEnv * env,
jobject jprocess);
/*
* Class org_simgrid_msg_Process
- * Method restart
+ * Method resume
* Signature (Lorg/simgrid/msg/Process;)V
*/
-JNIEXPORT void JNICALL Java_org_simgrid_msg_Process_restart
+JNIEXPORT void JNICALL Java_org_simgrid_msg_Process_resume
(JNIEnv *, jobject);
/*
* Class org_simgrid_msg_Process