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
Make Process.migrate non-static
[simgrid.git]
/
org
/
simgrid
/
msg
/
Comm.java
diff --git
a/org/simgrid/msg/Comm.java
b/org/simgrid/msg/Comm.java
index
899d094
..
423371d
100644
(file)
--- a/
org/simgrid/msg/Comm.java
+++ b/
org/simgrid/msg/Comm.java
@@
-15,7
+15,11
@@
public class Comm {
/**
* Indicates if the communication is a receiving communication
*/
/**
* Indicates if the communication is a receiving communication
*/
- boolean receiving;
+ protected boolean receiving;
+ /**
+ * Indicates if the communication is finished
+ */
+ protected boolean finished = false;
/**
* Represents the bind between the java comm and the
* native C comm. You must never access it, since it is
/**
* Represents the bind between the java comm and the
* native C comm. You must never access it, since it is
@@
-25,7
+29,7
@@
public class Comm {
/**
* Represents the bind for the task object pointer. Don't touch it.
*/
/**
* Represents the bind for the task object pointer. Don't touch it.
*/
- public long
bindTask
= 0;
+ public long
taskBind
= 0;
/**
* Task associated with the comm. Beware, it can be null
*/
/**
* Task associated with the comm. Beware, it can be null
*/
@@
-41,12
+45,12
@@
public class Comm {
* Finalize the communication object, destroying it.
*/
protected void finalize() throws Throwable {
* Finalize the communication object, destroying it.
*/
protected void finalize() throws Throwable {
-
unbind
();
+
destroy
();
}
/**
* Unbind the communication object
*/
}
/**
* Unbind the communication object
*/
- p
ublic native void unbind
() throws NativeException;
+ p
rotected native void destroy
() throws NativeException;
/**
* Returns if the communication is finished or not.
* If the communication has finished and there was an error,
/**
* Returns if the communication is finished or not.
* If the communication has finished and there was an error,
@@
-65,5
+69,12
@@
public class Comm {
public Task getTask() {
return task;
}
public Task getTask() {
return task;
}
-
+
+ /**
+ * Class initializer, to initialize various JNI stuff
+ */
+ public static native void nativeInit();
+ static {
+ nativeInit();
+ }
}
}