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
(allHost method :using MSG_get_host_number(/table) methods instead calling the globa...
[simgrid.git]
/
src
/
java
/
jmsg.c
diff --git
a/src/java/jmsg.c
b/src/java/jmsg.c
index
0d9ea23
..
6bf0a01
100644
(file)
--- a/
src/java/jmsg.c
+++ b/
src/java/jmsg.c
@@
-912,8
+912,8
@@
Java_simgrid_msg_MsgNative_allHosts(JNIEnv * env, jclass cls_arg)
jstring jname;
m_host_t host;
jstring jname;
m_host_t host;
- int count =
xbt_fifo_size(msg_global->host
);
- m_host_t *table =
(m_host_t *) xbt_fifo_to_array(msg_global->host
);
+ int count =
MSG_get_host_number(
);
+ m_host_t *table =
MSG_get_host_table(
);
jclass cls = jxbt_get_class(env, "simgrid/msg/Host");
jclass cls = jxbt_get_class(env, "simgrid/msg/Host");