A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add resume/suspend. Make restart/pause deprecated
[simgrid.git]
/
org
/
simgrid
/
msg
/
Process.java
diff --git
a/org/simgrid/msg/Process.java
b/org/simgrid/msg/Process.java
index
dcfd43f
..
b726b8d
100644
(file)
--- a/
org/simgrid/msg/Process.java
+++ b/
org/simgrid/msg/Process.java
@@
-230,16
+230,31
@@
public abstract class Process implements Runnable {
/**
* Suspends the process by suspending the task on which it was
* waiting for the completion.
/**
* 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.
/**
* 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.
*
/**
* Tests if a process is suspended.
*