Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
(allHost method :using MSG_get_host_number(/table) methods instead calling the globa...
authorcoldpeace <coldpeace@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 24 Mar 2010 17:26:03 +0000 (17:26 +0000)
committercoldpeace <coldpeace@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 24 Mar 2010 17:26:03 +0000 (17:26 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7361 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/java/jmsg.c

index 0d9ea23..6bf0a01 100644 (file)
@@ -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");